SQL client instrumentation does not deliver any traces - how to debug? #1797
Labels
comp:instrumentation.sqlclient
Things related to OpenTelemetry.Instrumentation.SqlClient
question
Further information is requested
Question
I have instrumented an ASP.NET core microservice with OpenTelemetry (ASP.NET core, HTTP client, SQL client instrumentations).
Everything works well except that SQL client instrumentation does not deliver any tracing data (other instrumentations do).
This only happens if I deploy the service into a K8s cluster, I cannot reproduce it locally with the same Docker image.
For basic troubleshooting I instrumented my microservice as described here: https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry#troubleshooting - log level: LogAlways
The log I get is the following:
When I do the same in a local environment I get the following:
In short: Logs about
OpenTelemetry.SqlClient.Execute
are missing when running non locally but SQL query is executed (data is reported back).In addition to that I printed out the diagnostic listener event names. They match the names defined in https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Instrumentation.SqlClient.
This means those events are fired...
Question: How can I get more information about what might be failing in SQL client instrumentation?
Describe your environment.
The text was updated successfully, but these errors were encountered: