question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include option of turning off compressed spans for python agent

See original GitHub issue

Is your feature request related to a problem? Please describe. We have endpoints that hit the database a lot, but with different queries. Previously before compressed spans went in we could see each of these queries in our trace breakdown. Now they are rolled up into a single “X Calls to postgres” which I can see being useful to some to avoid bloat in their span index but for us is near useless if we cant get the underlying queries being ran. Conversely if we had the option to add another layer to this logic

Two spans are considered exact matches if the following attributes are identical:
 * span name
 * span type
 * span subtype
 * destination resource (e.g. the Database name)

for inclusion of the query being ran (ideally before parameters are applied to the query ie SELECT name FROM person WHERE age > 18 and SELECT name FROM person WHERE age > 21 could be considered the same would be awesome).

Describe the solution you’d like Either a flag to not compress spans (if it already exists I couldn’t find it in documentation), or additional logic to include thequery as part of the attribute consideration.

Describe alternatives you’ve considered None I suppose, tried to figure out what was happening and had to dig through release notes to find the addition to the python agent.

Additional context It would be nice if new features like this came out with a feature flag that defaulted to current behavior rather then having to dig around for why our spans now look differently.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
beniwohlicommented, Dec 6, 2021

@m-standfuss I’ll probably create a hotfix release some time this week. Sorry about the troubles!

0reactions
beniwohlicommented, Jan 4, 2022

@m-standfuss this was part of the 6.7.2 release about a month ago

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python agent configuration | New Relic Documentation
This setting can be used to turn on or off all attributes for transaction traces. If attributes.enabled at the root level is false...
Read more >
Configuration | APM Python Agent Reference [master] - Elastic
Enable/disable span compression. If enabled, the agent will compress very short, repeated spans into a single span, which is beneficial for storage and ......
Read more >
Compressed spans · Issue #432 · elastic/apm - GitHub
Implement the span compression algorithm in the agents to handle excessive database calls and huge amount of external spans.
Read more >
Basic Agent Usage - Datadog Docs
Agent v6 embeds a Python 2.7 interpreter to run integrations and custom checks. ... To disable the GUI, set the port's value to...
Read more >
CloudWatch Logs agent reference - AWS Documentation
To disable this feature, add use_gzip_http_content_encoding = false to the [general] section of the CloudWatch Logs agent configuration file, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found