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

feat: metric span summaries #2522

Merged
merged 16 commits into from Nov 29, 2023
Merged

feat: metric span summaries #2522

merged 16 commits into from Nov 29, 2023

Conversation

mitsuhiko
Copy link
Member

@mitsuhiko mitsuhiko commented Nov 21, 2023

This PR adds metric summaries to spans.

Refs this RFC: https://github.com/getsentry/rfcs/blob/main/text/0123-metrics-correlation.md

For now they are guarded behind a sample rate which is 0 by default so we can gradually judge the impact. The sampling is done globally which is not useful from a user experience point of view, but enables us to validate the behavior.

@mitsuhiko mitsuhiko marked this pull request as ready for review November 22, 2023 09:07
Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

tests/test_metrics.py Outdated Show resolved Hide resolved
scttcper pushed a commit to getsentry/sentry that referenced this pull request Nov 27, 2023
This lands a callback which controls the sample rate of span local
metric summaries dynamically.

Refs getsentry/sentry-python#2522
Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

We could consider renaming LocalAggregator to SpanAggregator or SpanMetricAggregator, but depends on how this is intended to be used in the future and if it's always going to be stored on a span.

@sentrivana sentrivana enabled auto-merge (squash) November 29, 2023 11:20
@sentrivana sentrivana merged commit b250a89 into master Nov 29, 2023
468 checks passed
@sentrivana sentrivana deleted the feature/span-aggregation branch November 29, 2023 11:26
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

2 participants