Skip to content

Commit

Permalink
fix broken span db system query
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Oct 9, 2024
1 parent fd8abe9 commit fcabd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay-dynamic-config/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub fn hardcoded_span_metrics() -> Vec<(GroupKey, Vec<MetricSpec>, Vec<TagMappin
let is_db = RuleCondition::eq("span.sentry_tags.category", "db")
& !RuleCondition::glob("span.op", DISABLED_DATABASES)
// MongoDB queries are only allowed when `span.system` is set to `mongodb`.
& (RuleCondition::eq("span.system", "mongodb")
& (RuleCondition::eq("span.data.db\\.system", "mongodb")
| !RuleCondition::glob("span.description", MONGODB_QUERIES));
let is_resource = RuleCondition::glob("span.op", RESOURCE_SPAN_OPS);

Expand Down

0 comments on commit fcabd08

Please sign in to comment.