Activity from SQL instrumentation replaces Activity.Current from the call site #1771
Labels
bug
Something isn't working
comp:instrumentation.sqlclient
Things related to OpenTelemetry.Instrumentation.SqlClient
Bug Report
List of all OpenTelemetry NuGetpackages and version that you are using:
OpenTelemetry.Instrumentation.SqlClient
1.0.0-rc9.9Runtime version:
net6.0
Symptom
After executing an SQL command,
Activity.Current
is replaced byOpenTelemetry.Instrumentation.SqlClient.Execute
.What is the expected behavior?
I expect
Activity.Current
to be reset to the value it had before the SQL command is executed.What is the actual behavior?
Activity.Current
is replaced byOpenTelemetry.Instrumentation.SqlClient.Execute
Reproduce
See self-contained project: https://github.com/pardahlman/otel-repro
The text was updated successfully, but these errors were encountered: