Skip to content

ref(metric-stats): Purges metric stats from the codebase - #5097

Merged
Dav1dde merged 2 commits into
masterfrom
dav1d/rm-metric-stats
Aug 29, 2025
Merged

Dav1dde merged 2 commits into
masterfrom
dav1d/rm-metric-stats

Conversation

@Dav1dde

@Dav1dde Dav1dde commented Aug 29, 2025

Copy link
Copy Markdown
Member

You were a good feature, you were a useful feature. Unfortunately you never got to shine (rip DDM).

@Dav1dde
Dav1dde requested a review from a team as a code owner August 29, 2025 07:27
Comment thread relay-server/src/metrics/outcomes.rs Resolved
Dav1dde added a commit to getsentry/sentry that referenced this pull request Aug 29, 2025
@Dav1dde Dav1dde self-assigned this Aug 29, 2025
@Dav1dde
Dav1dde enabled auto-merge August 29, 2025 09:55
@Dav1dde
Dav1dde added this pull request to the merge queue Aug 29, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 29, 2025
@Dav1dde
Dav1dde added this pull request to the merge queue Aug 29, 2025
Merged via the queue into master with commit 39aad0c Aug 29, 2025
@Dav1dde
Dav1dde deleted the dav1d/rm-metric-stats branch August 29, 2025 11:12
jan-auer added a commit that referenced this pull request Aug 29, 2025
* master:
  test(spanv2): Slightly increase timeout to reduce flakes (#5100)
  fix(genai): Use correct pii maybe, not false (#5099)
  ref(metric-stats): Purges metric stats from the codebase (#5097)
  ref(ourlogs): Removes support for the envelope otel log item type (#5082)
constantinius pushed a commit to getsentry/sentry that referenced this pull request Sep 1, 2025
andrewshie-sentry pushed a commit to getsentry/sentry that referenced this pull request Sep 9, 2025
vgrozdanic added a commit to getsentry/sentry that referenced this pull request Sep 11, 2025
In getsentry/relay#5097 we have removed the
`metric_stats` completely from the relay, but it is still generated as a
part of global config in Sentry. This is now preventing us to bump
`sentry-relay` package (#99205),
because the tests are failing.

Clean up plan:
- stop checking for `metric_stats` in test
- bump `sentry-relay` dependency 
- remove `metric_stats` from sentry codebase



Code used to find the diff:
```py
    for key, value in normalized.items():
        if value != config[key]:
            import difflib
            import pprint

            config_str = pprint.pformat(config[key], width=120, sort_dicts=True)
            value_str = pprint.pformat(value, width=120, sort_dicts=True)
            diff = "\n".join(
                difflib.unified_diff(
                    config_str.splitlines(),
                    value_str.splitlines(),
                    fromfile="config",
                    tofile="normalized",
                    lineterm="",
                )
            )
            print(f"Difference for key '{key}':\n{diff}")
            raise Exception(f"Value for key {key} is not equal to other value")
```
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