-
Notifications
You must be signed in to change notification settings - Fork 324
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
Performance: filter spans based on duration #852
Comments
In my apm span index, from 150.000 db spans, 200 are above 10ms, and 50 are above 50ms. |
This is doable, but some pitfalls to be aware of (see discussion in #440):
In addition, not sure whether this dynamic naming of config option is the right way to go. |
My example scales, in a 2GB span index with 11.5M docs, 95% spans are db type and more than 99% of db span duration is below 4ms. Such a waste of disk space... Thinking to disable db spans and use postgres logging feature of threshold duration queries, then parse with logstash and manual crossreference log time with transaction to find the source, until this issue is resolved. |
Hi @cdalexndr , we have an upcoming feature called "compressed spans" that should cover your use-case here. Here are the related issues:
Thus for now I would suggest that you subscribe to those issues and I'll close this one. |
Also related, there is another related upcoming feature to handle fast exit spans (which include DB spans):
|
Using the APM, my span index is full of db spans (span.type:db) containing lots of fast execution queries that are of little interest.
A method to filter these spans based on duration will help to ignore fast queries and trace only important long running queries.
Using sampling can ignore important long queries.
I suggest a dynamic configuration option based on span type and subtype:
span_min_duration_[type]_[subtype]=[ms]
Example:
span_min_duration_db=500ms
will record only spans with type db and any subtype longer than 500msspan_min_duration_app_maintenance=100ms
will record spans with type app and subtype maintenance longer than 100msRelated: #440
The text was updated successfully, but these errors were encountered: