{"id":28778354,"url":"https://github.com/datadrivers/opentelemetry-hand-on","last_synced_at":"2026-02-15T04:33:40.259Z","repository":{"id":282238786,"uuid":"932052638","full_name":"datadrivers/opentelemetry-hand-on","owner":"datadrivers","description":"OpenTelemetry setup showing its capabilities","archived":false,"fork":false,"pushed_at":"2025-03-13T14:28:22.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-07T17:53:27.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datadrivers.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":"2025-02-13T09:35:49.000Z","updated_at":"2025-03-13T14:28:26.000Z","dependencies_parsed_at":"2025-03-13T14:42:18.035Z","dependency_job_id":null,"html_url":"https://github.com/datadrivers/opentelemetry-hand-on","commit_stats":null,"previous_names":["datadrivers/opentelemetry-hand-on"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datadrivers/opentelemetry-hand-on","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fopentelemetry-hand-on","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fopentelemetry-hand-on/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fopentelemetry-hand-on/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fopentelemetry-hand-on/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datadrivers","download_url":"https://codeload.github.com/datadrivers/opentelemetry-hand-on/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fopentelemetry-hand-on/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29469311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T04:33:36.478Z","status":"ssl_error","status_checked_at":"2026-02-15T04:33:36.033Z","response_time":118,"last_error":"SSL_read: 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":"2025-06-17T16:06:40.502Z","updated_at":"2026-02-15T04:33:40.237Z","avatar_url":"https://github.com/datadrivers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenTelemetry Hands-On\n\nOpenTelemetry setup showing its capabilities.\n\nUsing:\n\n- Node.js\n  - An example app to send traces, metrics and logs via OpenTelemetry SDK\n- OpenTelemetry Collector\n  - To receive metrics and logs\n  - To export metrics to Prometheus and export logs to Loki\n- Jaeger\n  - To receive and visualize traces\n- Prometheus - To gather metrics\n- Grafana - To visualize metrics from Prometheus\n- Loki - To visualize logs\n\n## URLs\n\n- Jaeger - http://localhost:16686\n- Prometheus - http://localhost:9090\n- Grafana - http://localhost:3000\n  - User: `admin`\n  - Default password: `admin`\n- Loki - http://localhost:3100\n\n## TODOs\n\n- [ ] Decide whether to use Jaeger or OpenTelemetry Collector to collect traces, metrics and logs\n  - [ ] If Jaeger: Find a way to export data sent to Jaeger to Prometheus for metrics and Loki for logs\n  - [ ] If OpenTelemetry Collector: Find a way to export traces to Jaeger, metrics to Prometheus and logs to Loki\n\n## App Set Up\n\n```bash\ncd ./app\n\n# Use the correct Node.js version defined in .nvmrc\nnvm use\n\n# Install the dependencies\nnpm install\n```\n\n## Docker Compose Set Up\n\n```bash\n# Build the Docker Image in ./app\ndocker compose build\n\n# Start the services\ndocker compose up -d\n\n# Check the logs of the app\ndocker compose logs -f app\n# ... or of the collector\ndocker compose logs -f otel-collector\n```\n\n## Send requests to the app\n\n```bash\n# GET /rolldice\ncurl http://localhost:8080/rolldice\n\n# GET /rollrick\ncurl http://localhost:8080/rollrick\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadrivers%2Fopentelemetry-hand-on","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatadrivers%2Fopentelemetry-hand-on","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadrivers%2Fopentelemetry-hand-on/lists"}