Skip to content

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Oct 9, 2025

Description

Remove old metrics code to make way for #4898

Metrics was always an experimental feature and Sentry stopped accepting metrics a year ago.

Issues

Reminders

@sentrivana sentrivana marked this pull request as ready for review October 9, 2025 08:12
@sentrivana sentrivana requested a review from a team as a code owner October 9, 2025 08:12
# and remove it (if it is present, i.e. not the very last char in an eof terminated envelope)
payload = f.readline().rstrip(b"\n")
if headers.get("type") in ("event", "transaction", "metric_buckets"):
if headers.get("type") in ("event", "transaction"):
Copy link

Choose a reason for hiding this comment

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

Bug: Metric Buckets Payload Deserialization Failure

The deserialize_from method stopped parsing metric_buckets payloads as JSON. This means existing envelopes with metric_buckets will now be deserialized as raw bytes, which could cause runtime errors when a parsed object is expected.

Fix in Cursor Fix in Web

@sentrivana sentrivana merged commit 7997368 into master Oct 9, 2025
120 of 124 checks passed
@sentrivana sentrivana deleted the ivana/remove-metrics branch October 9, 2025 08:27
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