Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions proto/sentry_protos/snuba/v1/trace_item_attribute.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ 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).
// Signed to allow negative indexing (e.g. -1 for the last element).
optional sint32 index = 3;
}

// this allow us to select single key such as span.attr1
Expand Down
4 changes: 4 additions & 0 deletions rust/src/sentry_protos.snuba.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ 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).
/// Signed to allow negative indexing (e.g. -1 for the last element).
#[prost(sint32, optional, tag = "3")]
pub index: ::core::option::Option<i32>,
}
/// Nested message and enum types in `AttributeKey`.
pub mod attribute_key {
Expand Down
Loading