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

Support span activation intervals size limit #3570

Merged
merged 4 commits into from
May 26, 2022

Conversation

jbachorik
Copy link
Contributor

@jbachorik jbachorik commented May 24, 2022

What Does This Do

This adds hard limits on the size of the data representing the span activation intervals.

Motivation

The span metadata size (this includes the span tags) is limited to 25000 bytes - therefore it does not make sense to generate and keep more data if that is going to be discarded anyway. It is better to have the limit applied directly in the agent where we have control over when to cut off the data collection (saving CPU cycles) and the data export (where we can assure valid data).

Additional Notes

For the sakes of minimizing the costs of Long.valueOf() this change is also adding a few classes from JCTools which are necessary to support NonBlockingHashMapLong class that is used instead of ConcurrentHashMap.
The JCTools classes are stripped to the bare minimum required for the code to run and they are not adding a significant weight to the agent jar.

@jbachorik jbachorik force-pushed the jb/context_intervals_limits branch 2 times, most recently from 2680021 to e12ab97 Compare May 24, 2022 16:01
@jbachorik jbachorik force-pushed the jb/context_intervals_limits branch from e12ab97 to 3126b0f Compare May 24, 2022 16:22
@jbachorik jbachorik force-pushed the jb/context_intervals_limits branch from dfbbacf to e3f3007 Compare May 25, 2022 10:47
@jbachorik jbachorik marked this pull request as ready for review May 25, 2022 10:49
@jbachorik jbachorik requested review from a team as code owners May 25, 2022 10:49
@jbachorik jbachorik merged commit 84c1f30 into master May 26, 2022
@jbachorik jbachorik deleted the jb/context_intervals_limits branch May 26, 2022 07:41
@github-actions github-actions bot added this to the 0.102.0 milestone May 26, 2022
@luhenry luhenry added the comp: profiling Profiling label May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants