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
Prev Previous commit
Next Next commit
ref(dynamic-config): Bump metrics and sampling config versions
  • Loading branch information
jan-auer committed Nov 14, 2023
commit 9bff63639edf5dccf3eea5e76739c5a108e7da75
3 changes: 2 additions & 1 deletion relay-dynamic-config/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ pub struct CustomMeasurementConfig {
/// - 3:
/// - Emit a `usage` metric and use it for rate limiting.
/// - Delay metrics extraction for indexed transactions.
const TRANSACTION_EXTRACT_VERSION: u16 = 3;
/// - 4: Adds support for `RuleConfigs` with string comparisons.
const TRANSACTION_EXTRACT_VERSION: u16 = 4;

/// Deprecated. Defines whether URL transactions should be considered low cardinality.
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion relay-sampling/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use relay_protocol::RuleCondition;
///
/// The version is an integer scalar, incremented by one on each new version:
/// - 1: Initial version that uses `rules_v2`.
/// - 2: Breaking change to `RuleConfig` and moves back to `rules`.
/// - 2: Moves back to `rules` and adds support for `RuleConfigs` with string comparisons.
const SAMPLING_CONFIG_VERSION: u16 = 2;

/// Represents the dynamic sampling configuration available to a project.
Expand Down
Loading