{"id":15645318,"url":"https://github.com/thangchung/practical-opentelemetry","last_synced_at":"2025-04-30T11:14:55.638Z","repository":{"id":40906172,"uuid":"221933005","full_name":"thangchung/practical-opentelemetry","owner":"thangchung","description":"Make OpenTelemetry works on .NET Core with features such as tracing, logs and metrics on multiple protocols like HTTP/gRPC/UDP/TCP...","archived":false,"fork":false,"pushed_at":"2022-12-08T09:19:51.000Z","size":2102,"stargazers_count":61,"open_issues_count":3,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T15:36:46.539Z","etag":null,"topics":["dotnet-core","grafana","grafana-loki","grpc","jaeger","kafka","kafka-client","opentelemetry","opentracing","prometheus","serilog"],"latest_commit_sha":null,"homepage":"","language":"C#","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/thangchung.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}},"created_at":"2019-11-15T13:48:21.000Z","updated_at":"2025-02-25T13:47:44.000Z","dependencies_parsed_at":"2023-01-25T09:45:43.331Z","dependency_job_id":null,"html_url":"https://github.com/thangchung/practical-opentelemetry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fpractical-opentelemetry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fpractical-opentelemetry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fpractical-opentelemetry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fpractical-opentelemetry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thangchung","download_url":"https://codeload.github.com/thangchung/practical-opentelemetry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249499826,"owners_count":21282312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["dotnet-core","grafana","grafana-loki","grpc","jaeger","kafka","kafka-client","opentelemetry","opentracing","prometheus","serilog"],"created_at":"2024-10-03T12:06:20.171Z","updated_at":"2025-04-18T13:32:07.758Z","avatar_url":"https://github.com/thangchung.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Opentelemetry Experiment with .NET Core 3.x\n\n[![OpenTelemetry Badge](https://img.shields.io/badge/OpenTelemetry-enabled-blue.svg)](http://opentelemetry.io)\n\nThis is a demo to show how to use OpenTelemetry for tracing on multiple services with multi-protocols on .NET Core 3.x\n\n# Demo scenario\n\n1. Web API (REST) - http://localhost:5000\n2. WeatherService (gRPC) - http://localhost:5002\n3. ProductService (REST) - http://localhost:5001\n4. MeteoriteService (gRPC) - http://localhost:5003\n\n![](assets/high-level-architecture-demo.png)\n\n### Step 1:\n\n```\n$ docker-compose up\n```\n\n### Step 2:\n\nThen run 3 projects above with Visual Studio or Visual Code\n\n### Step 3: Run `Web API` with url as below\n\n[http://localhost:\u003cport\u003e/WeatherForecast](http://localhost:\u003cport\u003e/WeatherForecast)\n\n## Jaeger UI\n\nREST -\u003e gRPC -\u003e REST\n\n[http://localhost:16686](http://localhost:16686/)\n\n![](assets/tracing01_jaeger.png)\n\n## Zipkin UI\n\nREST -\u003e gRPC -\u003e REST\n\n[http://localhost:9412](http://localhost:9412/)\n\n![](assets/tracing01_zipkin.png)\n\nTrace from SampleWeb to MeteoriteService and to Remote URL at https://data.nasa.gov/resource/y77d-th95.json\n\n![](assets/tracing02_zipkin.png)\n\nTrace with error on the consumer side\n\n![](assets/tracing03_zipkin.png)\n\n## Prometheus - Grafana\n\nHealthcheck with Prometheus\n\n![](assets/prom_01.png)\n\nMonotoring .NET resource with Grafana\n\n![](assets/grafana_01.png)\n\n## Loki - Grafana\n\n[http://localhost:3000](http://localhost:3000/)\n\nType `{app=\"sample-web\", level=\"information\"} \\d{1,9}ms` on `Log labels`\n\n![](assets/loki-grafana-logs.png)\n\n## Seq UI\n\n[http://localhost:5340](http://localhost:5340/)\n\n![](assets/logging01.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangchung%2Fpractical-opentelemetry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthangchung%2Fpractical-opentelemetry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangchung%2Fpractical-opentelemetry/lists"}