DataDog / dd-trace-dotnet

.NET Client Library for Datadog APM
https://docs.datadoghq.com/tracing/
Apache License 2.0
413 stars 132 forks source link

Unable to completely disable Npgsql tracing #5740

Open samcarton opened 1 week ago

samcarton commented 1 week ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Disable tracing for an integration, eg DD_TRACE_Npgsql_ENABLED=false
  2. Notice traces are still being created by the code

Expected behavior

Runtime environment (please complete the following information):

bouwkast commented 6 days ago

Hi @samcarton, at this moment the only way to disable this is to set DD_TRACE_OTEL_ENABLED to false (if it is enabled), unfortunately this would disable the OpenTelemetry support within the .NET Tracer as well.

Thanks for raising this though as we will look into improving this as this isn't ideal.