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(protocol): Support comparisons in rule conditions on strings #2730

Merged
merged 11 commits into from
Nov 16, 2023

Conversation

jan-auer
Copy link
Member

Note: This is a re-open of #2721.

Adds the ability to run all comparison operators (>, >=, <, <=)
on strings. This applies to dynamic sampling and metric extraction.

Since this change breaks backwards compatibility, the versioning for
metrics extraction and dynamic sampling were bumped.

Dynamic sampling configs did not have a versioning schema before. The
last breaking change introduced a rules_v2 array. To fix this, there
is now versioning built into the new config. Additionally, an
ErrorBoundary is added around sampling configuration to prevent
accidental deserialization failures.

Backwards compatibility is as follows:

  • New Relay <> Old Sentry: Rules are automatically upgraded from
    rules_v2.
  • Old Relay <> New Sentry: Cannot see the new rules and forwards events.

Relates to getsentry/sentry#59896
Resolves https://github.com/getsentry/team-ingest/issues/244

@jan-auer jan-auer self-assigned this Nov 16, 2023
@jan-auer jan-auer requested a review from a team November 16, 2023 11:57
* master:
  feat(protocol): Add access to `device.model` on contexts (#2728)
  Revert "feat(protocol): Support comparisons in rule conditions on strings" (#2727)
  ref(normalization): Remove TransactionsProcessor (#2714)
  feat(protocol): Support comparisons in rule conditions on strings (#2721)
  test(normalization): Reduce span default op test scope (#2726)
  release: 23.11.0
  fix(normalization): Restore performance score normalization (#2725)
@jan-auer jan-auer merged commit 063df70 into master Nov 16, 2023
20 checks passed
@jan-auer jan-auer deleted the feat/rule-condition-str-cmp branch November 16, 2023 13:43
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

3 participants