open-telemetry / opentelemetry-dotnet-contrib

This repository contains set of components extending functionality of the OpenTelemetry .NET SDK. Instrumentation libraries, exporters, and other components can find their home here.
https://opentelemetry.io
Apache License 2.0
426 stars 259 forks source link

DI support for Runtime instrumentation #834

Open dpk83 opened 1 year ago

dpk83 commented 1 year ago

Issue with OpenTelemetry.Instrumentation.Runtime

Is this a feature request or a bug?

What is the expected behavior?

What do you expect to see?

What is the actual behavior?

Today it only works for non DI mode. Options can't be provided directly via configuration

Additional Context

Add any other context about the feature request here.

CodeBlanch commented 1 year ago

For anyone looking to implement this see: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/issues/833#issuecomment-1377730321