How/where does Sdk.SuppressInstrumentation get set? #5344
Replies: 1 comment 2 replies
-
Hm, looks like it's set for logging, metrics and traces... all for the same reason: opentelemetry-dotnet/docs/logs/extending-the-sdk/MyExporter.cs Lines 32 to 34 in 3157b5c opentelemetry-dotnet/docs/metrics/extending-the-sdk/MyExporter.cs Lines 32 to 34 in 3157b5c opentelemetry-dotnet/docs/trace/extending-the-sdk/MyExporter.cs Lines 32 to 34 in 3157b5c So something to do with the exporters. Is it possible to capture telemetry via a custom span processor if exporters are also configured for the telemetry data or are those two things fundamentally incompatible? |
Beta Was this translation helpful? Give feedback.
-
I've got an application that is instrumented with OpenTelemetry (it's an Aspire starter template) and I'm trying to capture trace information via a custom span process. One of the things the span processor does is check the value of
Sdk.SuppressInstrumentation
... if it's true then the span processor bails rather than forward the traces.For some reason, somewhere/somehow in that Aspire starter template,
Sdk.SuppressInstrumentation
is being set totrue
and I wondered why this would be the case? What's the purpose ofSdk.SuppressInstrumentation
and what are the standard mechanisms to enable or disable this?Beta Was this translation helpful? Give feedback.
All reactions