Skip to content

Commit

Permalink
Remove AI from known modules condition
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-sentry committed Apr 19, 2024
1 parent 9834ec4 commit 373f9d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 7 additions & 3 deletions relay-dynamic-config/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ fn span_metrics(transaction_extraction_enabled: bool) -> impl IntoIterator<Item
& duration_condition.clone();

let know_modules_condition =
(is_ai.clone() | is_db.clone() | is_resource.clone() | is_mobile.clone() | is_http.clone())
(is_db.clone() | is_resource.clone() | is_mobile.clone() | is_http.clone())
& duration_condition.clone();

[
Expand Down Expand Up @@ -439,10 +439,14 @@ fn span_metrics(transaction_extraction_enabled: bool) -> impl IntoIterator<Item
.always(),
Tag::with_key("span.group")
.from_field("span.sentry_tags.group")
.when(know_modules_condition.clone() | app_start_condition.clone()),
.when(
is_ai.clone()
| know_modules_condition.clone()
| app_start_condition.clone(),
),
Tag::with_key("span.category")
.from_field("span.sentry_tags.category")
.when(know_modules_condition.clone()),
.when(is_ai.clone() | know_modules_condition.clone()),
Tag::with_key("span.description")
.from_field("span.sentry_tags.description")
.when(is_ai.clone() | app_start_condition.clone()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5955,9 +5955,6 @@ expression: metrics
),
tags: {
"environment": "fake_environment",
"span.category": "ai",
"span.description": "ConcurrentStream",
"span.group": "fdd5a729aef245ba",
"span.op": "ai.run.langchain",
"transaction": "gEt /api/:version/users/",
"transaction.op": "myop",
Expand Down Expand Up @@ -6060,9 +6057,6 @@ expression: metrics
),
tags: {
"environment": "fake_environment",
"span.category": "ai.pipeline",
"span.description": "Autofix Pipeline",
"span.group": "86148ae2d6c09430",
"span.op": "ai.pipeline.langchain",
"transaction": "gEt /api/:version/users/",
"transaction.op": "myop",
Expand Down

0 comments on commit 373f9d7

Please sign in to comment.