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

Reuse keyvalues #1165

Merged
merged 5 commits into from
Dec 10, 2021
Merged

Reuse keyvalues #1165

merged 5 commits into from
Dec 10, 2021

Conversation

mdisibio
Copy link
Contributor

@mdisibio mdisibio commented Dec 9, 2021

What this PR does:
This PR reduces the file size of search data by 30-40% by caching/reusing identical KeyValues structs across traces in a page of data. I.e. each trace with "service.name=[x, y, z]" throughout a page points to the same underlying bytes, instead of encoding it for every trace. This optimization is transparent to the rest of tempo and is forwards/backwards compatible (i.e. older versions of tempo can read this optimized buffer w/o issue).

Which issue(s) this PR fixes:
Fixes n/a

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@mdisibio mdisibio merged commit 519d0f8 into grafana:main Dec 10, 2021
@mdisibio mdisibio deleted the reuse-keyvalues branch April 25, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants