Replies: 1 comment 1 reply
-
@Simonl9l OTel SDK officially does not support this. You may do similar what we do in OTel Auto for "lazy instrumentation". Start from here https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/main/src/OpenTelemetry.AutoInstrumentation/Loading/LazyInstrumentationLoader.cs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, trying to switch over to Open Telemetry from
System.Metrics.Diagnostics
, to using the DI service builder, andAddOpenTelemtry()
etc.Is there a way to dynamically add or remove instruments, at runtime? How about same for Metrics?
My application can hot reload configuration that determined what metrics and instruments are created, so not sure how to do this if its not know at startup.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions