Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
narsaynorath committed Apr 23, 2024
1 parent eefb202 commit 554670d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 32 deletions.
9 changes: 4 additions & 5 deletions relay-event-schema/src/protocol/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ pub struct SpanData {
pub sdk_name: Annotated<String>,

// Frames Delay (in ms)
#[metastructure(field = "sentry.frames.delay")]
#[metastructure(field = "frames.delay")]
pub frames_delay: Annotated<Value>,

/// Other fields in `span.data`.
Expand Down Expand Up @@ -547,17 +547,16 @@ mod tests {
user: ~,
replay_id: ~,
sdk_name: ~,
frames_delay: ~,
frames_delay: I64(
100,
),
other: {
"bar": String(
"3",
),
"foo": I64(
2,
),
"frames.delay": I64(
100,
),
},
}
"###);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ expression: "(&event.value().unwrap().spans, metrics)"
user: ~,
replay_id: ~,
sdk_name: ~,
other: {
"frames.delay": I64(
123,
),
},
frames_delay: I64(
123,
),
other: {},
},
sentry_tags: {
"app_start_type": "warm",
Expand Down Expand Up @@ -382,6 +381,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
user: ~,
replay_id: ~,
sdk_name: ~,
frames_delay: ~,
other: {},
},
sentry_tags: {
Expand Down Expand Up @@ -465,6 +465,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
user: ~,
replay_id: ~,
sdk_name: ~,
frames_delay: ~,
other: {},
},
sentry_tags: {
Expand Down Expand Up @@ -752,28 +753,6 @@ expression: "(&event.value().unwrap().spans, metrics)"
merges: 1,
},
},
Bucket {
timestamp: UnixTimestamp(1597976303),
width: 0,
name: MetricName(
"d:spans/mobile.frames_delay@millisecond",
),
value: Distribution(
[
123.0,
],
),
tags: {
"device.class": "1",
"os.name": "iOS",
"release": "1.2.3",
"span.op": "ui.load.initial_display",
"transaction": "gEt /api/:version/users/",
},
metadata: BucketMetadata {
merges: 1,
},
},
Bucket {
timestamp: UnixTimestamp(1597976303),
width: 0,
Expand Down
1 change: 1 addition & 0 deletions relay-spans/src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ mod tests {
user: ~,
replay_id: ~,
sdk_name: "sentry.php",
frames_delay: ~,
other: {},
},
sentry_tags: ~,
Expand Down

0 comments on commit 554670d

Please sign in to comment.