diff --git a/CHANGELOG.md b/CHANGELOG.md index a2b7391a7a6..f7e18cc6a95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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**: diff --git a/relay-event-normalization/src/normalize/span/tag_extraction.rs b/relay-event-normalization/src/normalize/span/tag_extraction.rs index 18d8ed096d7..469952b72cd 100644 --- a/relay-event-normalization/src/normalize/span/tag_extraction.rs +++ b/relay-event-normalization/src/normalize/span/tag_extraction.rs @@ -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", ), @@ -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") + ); + } }