Skip to content
Discussion options

You must be logged in to vote

It's a standalone part. No connection to AddOpenTelemetry() but AddSource().

LazyInstrumentationLoader is just stateholder of Initializers (for example HttpClientInitializer). Initializer specifies when an specific instrumentation instance is created and when invoked, then creates the instance.

For eg HttpClientInitializer is waiting for System.Net.Http.dll to load. If loaded it creates instance of OpenTelemetry.Instrumentation.Http.HttpClientInstrumentation.

EnvironmentConfigurationTracerHelper.Wrappers.AddHttpClientInstrumentation() wires up all the parts. First adds a lazy initializer to listen for assembly load events. Second always subscribes to System.Diagnostic.DiagnosticSource sou…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Simonl9l
Comment options

@RassK
Comment options

RassK Apr 11, 2025
Collaborator

Answer selected by pjanotti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants