Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: high latency when a trace has 10s of thousands of spans since 2.15.0 #12370

Open
delfick opened this issue Feb 17, 2025 · 2 comments
Open
Labels

Comments

@delfick
Copy link

delfick commented Feb 17, 2025

Tracer Version(s)

2.15.0+

Python Version(s)

Python 3.12

Pip Version(s)

latest/uv

Bug Report

Hello,

In our very large Django app we have some views that manage to get 10s of thousands of spans from the ddtrace django integration wrapping django/forms/widgets/attrs.html and django/forms/widgets/select_option.html.

We upgraded from 2.9.4 to 2.19.3 at the start of the month and we noticed that the latency on these views went from a couple seconds to 25 seconds.

After releasing a number of the intervening versions we discovered that the performance penalty happens when upgrading past 2.14.7.

It is unclear exactly why and it appears we can't selectively not wrap specific templates.

I may need some assistance in figuring out what information you would need that may be helpful to understand what is happening here and what a fix could look like.

Reproduction Code

No response

Error Logs

No response

Libraries in Use

No response

Operating System

python:3.12.9-slim-bullseye docker image
Linux 6.1.124 #1 SMP PREEMPT_DYNAMIC Sat Jan 25 00:17:27 UTC 2025 x86_64 GNU/Linux
Debian 11.11

@quinna-h
Copy link
Contributor

Hello @delfick ,

Thank you for opening this issue.

Is there any further information you could provide such as:

a) Which integrations are you using with django?
b) How are you enabling django tracing? (i.e. are you using ddtrace-run or import ddtrace.auto)?
c) Is there any sample reproduction, such as a sample of your app, that you could provide (which might be related to the latency spike)?

Any information would help us to investigate the issue further!

@delfick
Copy link
Author

delfick commented Feb 20, 2025

@quinna-h hello, we've created a support case with datadog and we'll answer those questions via that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants