Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

**Features**:

- Derive the `object` span category from `object.*` span operations, such as Cloudflare R2 and Amazon S3 object storage calls. ([#6514](https://github.com/getsentry/relay/pull/6514))

## 26.10.0

**Breaking Changes**:
Expand Down
11 changes: 10 additions & 1 deletion relay-event-normalization/src/normalize/span/tag_extraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ pub fn span_op_to_category(op: &str) -> Option<&str> {
(
category @ Some(
"ai" | "app" | "browser" | "cache" | "console" | "db" | "event" | "file"
| "graphql" | "grpc" | "http" | "measure" | "middleware" | "navigation"
| "graphql" | "grpc" | "http" | "measure" | "middleware" | "navigation" | "object"
| "pageload" | "queue" | "resource" | "rpc" | "serialize" | "subprocess"
| "template" | "topic" | "view" | "websocket",
),
Expand Down Expand Up @@ -3403,4 +3403,13 @@ LIMIT 1

assert_eq!(tags.name.value(), Some(&"my name".to_owned()));
}

#[test]
fn test_span_op_to_category_object() {
assert_eq!(span_op_to_category("object.get"), Some("object"));
assert_eq!(
span_op_to_category("object.multipart_upload.create"),
Some("object")
);
}
}
Loading