You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the command DD_API_KEY=... docker compose up --build -d
Login to DataDog and from the left-hand navigation select APM -> Traces -> Explorer
What is the result that you get?
We get nearly duplicate spans - one span is under the service defaultdb and one span is under the service postgres. A screenshot is provided below:
What is the result that you expected?
We expect, by default, to have only one span provided.
Other Notes:
We are aware that we can use a configuration line config.django['instrument_databases'] = False to remove the duplicate spans.
We do feel that the default behavior of a tracing library would be to somehow avoid the duplication of spans as this creates additional data that is not useful - this:
creates a distraction for APM users (needing to filter through duplicates)
increases DataDog APM costs for ingested spans
likely increases network usage and slightly increases resource usage
The text was updated successfully, but these errors were encountered:
Summary of problem
When using a default install of the dd-trace module and running django requests to a backend database will be duplicated.
Which version of dd-trace-py are you using?
ddtrace==2.13.0
Which version of pip are you using?
pip 24.2
Which libraries and their versions are you using?
How can we reproduce your problem?
DD_API_KEY=... docker compose up --build -d
What is the result that you get?
We get nearly duplicate spans - one span is under the service
defaultdb
and one span is under the servicepostgres
. A screenshot is provided below:What is the result that you expected?
We expect, by default, to have only one span provided.
Other Notes:
config.django['instrument_databases'] = False
to remove the duplicate spans.The text was updated successfully, but these errors were encountered: