davidfowl / TodoApi

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

Fix OpenTelemetry Trace Recording #75

Closed daniilzaonegin closed 1 year ago

daniilzaonegin commented 1 year ago

David, thank you for a greate app. I've played with it locally and found out, that when you use the app and enable distributed tracing collection, you don't see the requests in jaeger.

To make opentelemetry instrumentation to record spans when we use the app, we need to add AlwaysOnSampler.

See https://github.com/open-telemetry/opentelemetry-dotnet/issues/4074.