diff --git a/Cargo.lock b/Cargo.lock index ba5c3c8e..ad90a3fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.8.29" +version = "0.8.30" dependencies = [ "prost", "prost-types", diff --git a/proto/sentry_protos/snuba/v1/trace_item_attribute.proto b/proto/sentry_protos/snuba/v1/trace_item_attribute.proto index 17398316..e47e526f 100644 --- a/proto/sentry_protos/snuba/v1/trace_item_attribute.proto +++ b/proto/sentry_protos/snuba/v1/trace_item_attribute.proto @@ -20,6 +20,9 @@ message AttributeKey { // `sentry.` to allow users to send attributes of the same name. // Exampe: `sentry.duration`, `sentry.span_id` etc string name = 2; + + // Optional indexed access into an array-typed attribute (only meaningful when type == TYPE_ARRAY). + optional uint32 index = 3; } // this allow us to select single key such as span.attr1 diff --git a/rust/src/sentry_protos.snuba.v1.rs b/rust/src/sentry_protos.snuba.v1.rs index 1f93c29f..13842d2b 100644 --- a/rust/src/sentry_protos.snuba.v1.rs +++ b/rust/src/sentry_protos.snuba.v1.rs @@ -8,6 +8,9 @@ pub struct AttributeKey { /// Exampe: `sentry.duration`, `sentry.span_id` etc #[prost(string, tag = "2")] pub name: ::prost::alloc::string::String, + /// Optional indexed access into an array-typed attribute (only meaningful when type == TYPE_ARRAY). + #[prost(uint32, optional, tag = "3")] + pub index: ::core::option::Option, } /// Nested message and enum types in `AttributeKey`. pub mod attribute_key {