{"id":20314910,"url":"https://github.com/catchpoint/tracing.examples-kubernetes-go","last_synced_at":"2026-05-07T22:39:59.011Z","repository":{"id":229618506,"uuid":"777148713","full_name":"catchpoint/Tracing.examples-kubernetes-go","owner":"catchpoint","description":"Catchpoint Tracing examples for Go applications deploying to Kubernetes","archived":false,"fork":false,"pushed_at":"2024-03-26T12:51:49.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-04T22:54:02.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catchpoint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-25T09:50:36.000Z","updated_at":"2024-03-26T12:55:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"fecad74a-8ea5-49ae-bf2b-3b8cef5d5940","html_url":"https://github.com/catchpoint/Tracing.examples-kubernetes-go","commit_stats":null,"previous_names":["catchpoint/tracing.examples-kubernetes-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/catchpoint/Tracing.examples-kubernetes-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchpoint%2FTracing.examples-kubernetes-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchpoint%2FTracing.examples-kubernetes-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchpoint%2FTracing.examples-kubernetes-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchpoint%2FTracing.examples-kubernetes-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catchpoint","download_url":"https://codeload.github.com/catchpoint/Tracing.examples-kubernetes-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchpoint%2FTracing.examples-kubernetes-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32759447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T18:17:09.611Z","updated_at":"2026-05-07T22:39:58.978Z","avatar_url":"https://github.com/catchpoint.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Catchpoint Tracer Examples - Kubernetes/GO\n\n## Pre-Requirements\n1. Please make sure **Docker Desktop** is installed and **Kubernetes** is activated. \n   Read [this](https://birthday.play-with-docker.com/kubernetes-docker-desktop) for details.\n2. Please make sure **Kubernetes CLI** (`kubernetes-cli`/`kubectl`) is installed. \n   See [here](https://kubernetes.io/docs/tasks/tools/) for details.\n   \n## Setup with OpenTelemetry From the Beginning\nThis setup shows how you can install OpenTelemetry resources into Kubernetes first and deploy application later then.\nSo deployed applications will be auto instrumented.\n\n### Setup OpenTelemetry Resources in Kubernetes\n1. Replace `\u003cCP-TRACING-API-KEY\u003e` with your Catchpoint Tracing API key in `otel/ìnstrumentation.yaml` file.\n2. Then run the setup script which installs **OpenTelemetry Operator** and **OpenTelemetry Instrumentation CR** (Custom Resource) into Kubernetes:\n   ```bash\n   ./otel/setup-otel.sh\n   ```\n\n### Deploy the Applications into Kubernetes with OTEL\n1. Run the deployment script which deploys database and applications **with** OpenTelemetry configuration into Kubernetes:\n\t```bash\n\t./apps/deploy-apps-with-otel-conf.sh\n\t```\n2. Wait until all services are activated.\n3. Go to http://localhost:30000.\n\n## Install OpenTelemetry After Setup\n\n### Deploy the Applications into Kubernetes without OTEL\n1. Run the deployment script which deploys database and applications **without** OpenTelemetry configuration into Kubernetes:\n   ```bash\n   ./apps/deploy-apps.sh\n   ```\n2. Wait until all services are activated.\n3. Go to http://localhost:30000.\n\n### Setup OpenTelemetry Resources in Kubernetes\n1. Replace `\u003cCP-TRACING-API-KEY\u003e` with your Catchpoint Tracing API key in `otel/ìnstrumentation.yaml` file.\n2. Then run the setup script which installs **OpenTelemetry Operator** and **OpenTelemetry Instrumentation CR** (Custom Resource) into Kubernetes:\n   ```bash\n   ./otel/setup-otel.sh\n   ```\n   \n### Patch Services to be Traced by OpenTelemetry\n1. Run the patch script which updates application deployments by adding **OpenTelemetry Auto Instrumentation Annotation** (`instrumentation.opentelemetry.io/inject-go`) to the services to be traced:\n   ```bash\n   ./apps/patch-apps-with-otel-conf.sh\n   ```\n2. Wait until all services are restarted.\n3. Go to http://localhost:30000.\n\n## Destroy\n\n### Destroy the Deployment of Applications\n1. Run the application destroy script which deletes applications and database deployed to Kubernetes:\n   ```bash\n   ./apps/destroy-apps.sh\n   ```\n2. Wait until all resources are deleted.\n\n### Destroy the Resources of OpenTelemetry\n1. Run the OpenTelemetry destroy script for deleting the OpenTelemetry resources (operator and instrumentation CR), \n   ```bash\n   ./otel/destroy-otel.sh\n   ```\n2. Wait until all resources are deleted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatchpoint%2Ftracing.examples-kubernetes-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatchpoint%2Ftracing.examples-kubernetes-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatchpoint%2Ftracing.examples-kubernetes-go/lists"}