Is there any sample code available how to use option patten with OpenTelemetry.Instrumentation.SqlClient using Dependency Injection. #4406
Unanswered
harshchaurasia2020
asked this question in
Q&A
Replies: 1 comment
-
You could refer the AspNetCore example app which makes use of Options +DI to configure opentelemetry-dotnet/examples/AspNetCore/appsettings.json Lines 30 to 32 in ef0c921 You could follow something similar for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is SqlClient supporting Option Pattern?
If yes, please provide some sample code to understand this feature in more easy way.
As I can see OpenTelemetry.Instrumentation.SqlClient has now dependency on OpenTelemetry.Api.ProviderBuilderExtensions.
References
https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Api.ProviderBuilderExtensions
https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/trace/extending-the-sdk/README.md#registration-extension-method-guidance-for-library-authors
Beta Was this translation helpful? Give feedback.
All reactions