You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(normalization): Trim tag keys & values (#5198)
We've been dropping event tag values when they are too long:
7af05d4
SDKs are removing truncation on their side, so Relay should truncate
instead of dropping to create the same end-to-end behavior for the
product.
Fixes INGEST-538.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Switch handling of overlong tag keys/values from dropping to trimming
with remarks, and update tests accordingly.
>
> - **Tag Trimming Behavior**:
> - Implement trimming (with remarks) for overlong tag keys/values in
`TrimmingProcessor` tests, replacing previous behavior that dropped
them.
> - **Tests**:
> - Remove `normalize::tests::test_too_long_tags` that expected
drop-on-too-long in `relay-event-normalization/src/normalize/mod.rs`.
> - Add `trimming::tests::test_too_long_tags` verifying trimmed `Tags`
`PairList` snapshots in `relay-event-normalization/src/trimming.rs`.
> - Adjust imports to include `PairList` where needed.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
9020285. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Copy file name to clipboardExpand all lines: py/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
- Introduces a project scope sampling rule type. ([#5077](https://github.com/getsentry/relay/pull/5077))
6
6
- Add InstallableBuild and SizeAnalysis data categories. ([#5084](https://github.com/getsentry/relay/pull/5084))
7
7
- Add `retentions` to the project configuration. ([#5135](https://github.com/getsentry/relay/pull/5135))
8
+
- Normalization: Trim event tag keys & values to 200 chars instead of dropping them. ([#5198](https://github.com/getsentry/relay/pull/5198))
0 commit comments