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

WIP Skip unmarshaling of exemplars when exemplars are disabled #8047

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

replay
Copy link
Contributor

@replay replay commented May 3, 2024

Skipping the unmarshaling of exemplars if a user has exemplars disabled anyway.

This would help us because we have users who have exemplars disabled and who are still sending requests with very large amounts of exemplars, right now we allocate buffers to decode all these exemplars just to then drop them.

The line number looks larger than the PR is, most of the lines are copy-pasted from generated files. I did not like having to copy-paste generated code, but I figured it's acceptable because we're already doing the same thing with the .Unmarshal() method of the type LabelAdapter here.

replay added 4 commits May 3, 2024 15:12
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
@replay replay changed the title WIP Decode writes without exemplars WIP Skip unmarshaling of exemplars when exemplars are disabled May 6, 2024
replay added 3 commits May 6, 2024 14:48
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
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.

None yet

1 participant