-
Notifications
You must be signed in to change notification settings - Fork 149
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
[Feature] Allow a way to remove some spans from default integrations #966
Comments
You can choose to drop a span by using returning A month or so ago I put in a feature request for being able to drop these kinds of things more reliably for exactly the kind of use case you see here! It hasn't been scheduled, but I'll be sure that it's brought up at the next planning meeting to see when we think we can schedule it. |
Sweet! we can live with that in this case so I'll move forward with that solution. Greatly appreciate your help. |
closing this issue as the solution proposed by Levi fixes the issue. |
It doesn't fix it, it's a workaround with a caveat that is potentially damaging. We need (imho) the ability to configure what is actually recorded by datadog. We have the exact same issue. |
@morrisonlevi I was hoping you could help us out on this one. We need to exclude We're adding this to our code following the suggestion in this thread:
but still getting all those ![]() I've added logging inside the closure and I can confirm it's running. I've also inspected the Do you have any suggestions? |
Is your feature request related to a problem? Please describe.
The default laravel tracing of every single
event
becomes problematic when loading large amounts of models. Here's an example of a trace:This query retrieves ~200 models and later on, we retrieve models attached to each of those models, which very rapidly brings us into the thousands of spans which are all of the type
laravel.event.handle
which in our case are not valuable to trace and bring us over the limit of 999 spans per trace.Describe the solution you'd like
Since I seem to be able to replace the default handler for tracing those methods, I'd like to be able to disable it entirely as well and have no span created.
Potentially, this should be part of the
SpanData
itself so that we could keep some events while ignoring others though we don't have a use case for this at the moment.Describe alternatives you've considered
Here's everything I've tried:
The final alternative would be to not use the Laravel integration at all and rebuild it on our own. Which isn't a great solution in my opinion.
Additional context
Nope
The text was updated successfully, but these errors were encountered: