Enabling OTEL based on some configuration #6570
Unanswered
vincent-duret
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom config file that is mapped to a config class TConfig through IOptions on startup.
To take the decision to call or not call the builder.Services.AddOpenTelemetry extension method, I need to access a property IsOTELEnabled on the TConfig instance registered within the DI.
Is it possible to achieve this scenario one way or another?
Any insights are welcome.
Beta Was this translation helpful? Give feedback.
All reactions