davidfowl / TodoApi

Todo application with ASP.NET Core Blazor WASM, Minimal APIs and Authentication
MIT License
2.79k stars 419 forks source link

Open Telemetry Exporters #11

Closed NielsPilgaard closed 2 years ago

NielsPilgaard commented 2 years ago

This PR configures OpenTelemetry to export spans using the OTLP Exporter. The exported spans can be picked up by Jaeger.

Documentation for running both Jaeger and Prometheus locally have been added, and a prometheus.yml that configures Prometheus to scrape docker.host.internal:5000.

Please let me know if there's anything you'd like me to do differently.

Resolves #10

davidfowl commented 2 years ago

This is awesome! Thanks @NielsPilgaard!

NielsPilgaard commented 2 years ago

So, how do we proceed from here? 😄

davidfowl commented 2 years ago

I think we leave in the instructions, the infra code and comment out the exporter wire up code.

NielsPilgaard commented 2 years ago

I think we leave in the instructions, the infra code and comment out the exporter wire up code.

Prometheus too?

davidfowl commented 2 years ago

Prometheus too?

That can stay since it's pull not push.

davidfowl commented 2 years ago

Thanks @NielsPilgaard !

NielsPilgaard commented 2 years ago

My pleasure, I'm glad to have contributed :D