Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 1.12 KB

File metadata and controls

13 lines (10 loc) · 1.12 KB

.NET auto-instrumentation

.NET auto-instrumentation also honors an annotation that will be used to set the .NET Runtime Identifiers(RIDs). Currently, only two RIDs are supported: linux-x64 and linux-musl-x64. By default linux-x64 is used.

instrumentation.opentelemetry.io/inject-dotnet: "true"
instrumentation.opentelemetry.io/otel-dotnet-auto-runtime: "linux-x64" # for Linux glibc based images, this is default value and can be omitted
instrumentation.opentelemetry.io/otel-dotnet-auto-runtime: "linux-musl-x64"  # for Linux musl based images

Note: For DotNet auto-instrumentation, by default, operator sets the OTEL_DOTNET_AUTO_TRACES_ENABLED_INSTRUMENTATIONS environment variable which specifies the list of traces source instrumentations you want to enable. The value that is set by default by the operator is all available instrumentations supported by the openTelemery-dotnet-instrumentation release consumed in the image, i.e. AspNet,HttpClient,SqlClient. This value can be overridden by configuring the environment variable explicitly.