Skip to content

Commit

Permalink
feat(spans): Remove unused transaction tag from resource metrics (#2853)
Browse files Browse the repository at this point in the history
We currently set the high cardinality `transaction` tag on all of the
resource size metrics:

- `http.response_content_length` (encoded size)
- `http.decoded_response_content_length`
- `http.response_transfer_size`

However, we only show `http.response_content_length` split by
transaction in the UI, so for now the tag can be removed on the other
two metrics.
  • Loading branch information
jjbayer authored Dec 15, 2023
1 parent 4fa4081 commit 9f84edc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions relay-dynamic-config/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,6 @@ pub fn add_span_metrics(project_config: &mut ProjectConfig) {
Tag::with_key("span.op")
.from_field("span.sentry_tags.op")
.always(), // already guarded by condition on metric
Tag::with_key("transaction")
.from_field("span.sentry_tags.transaction")
.always(), // already guarded by condition on metric
],
},
MetricSpec {
Expand Down Expand Up @@ -322,9 +319,6 @@ pub fn add_span_metrics(project_config: &mut ProjectConfig) {
Tag::with_key("span.op")
.from_field("span.sentry_tags.op")
.always(), // already guarded by condition on metric
Tag::with_key("transaction")
.from_field("span.sentry_tags.transaction")
.always(), // already guarded by condition on metric
],
},
MetricSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,6 @@ expression: metrics
"span.domain": "*.domain.com",
"span.group": "d744fa0716ef1142",
"span.op": "resource.css",
"transaction": "gEt /api/:version/users/",
},
},
Bucket {
Expand All @@ -1623,7 +1622,6 @@ expression: metrics
"span.domain": "*.domain.com",
"span.group": "d744fa0716ef1142",
"span.op": "resource.css",
"transaction": "gEt /api/:version/users/",
},
},
Bucket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,6 @@ expression: metrics
"span.domain": "*.domain.com",
"span.group": "7f402250846262be",
"span.op": "resource.css",
"transaction": "gEt /api/:version/users/",
},
},
Bucket {
Expand All @@ -1628,7 +1627,6 @@ expression: metrics
"span.domain": "*.domain.com",
"span.group": "7f402250846262be",
"span.op": "resource.css",
"transaction": "gEt /api/:version/users/",
},
},
Bucket {
Expand Down

0 comments on commit 9f84edc

Please sign in to comment.