diff --git a/CHANGELOG.md b/CHANGELOG.md index bbd0e7733ea..8ae90525ea3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Extract session updates from Switch dying messages. ([#6363](https://github.com/getsentry/relay/pull/6363)) - Add `spool.envelopes.max_unspool_envelopes_per_second` to limit unspooling rate. Disabled by default. ([#6433](https://github.com/getsentry/relay/pull/6433)) - Introduce dimension-based rate-limiting. ([#6387](https://github.com/getsentry/relay/pull/6387)) +- Add `file_revision` field to the stack frame schema. ([#6451](https://github.com/getsentry/relay/pull/6451)) **Bug Fixes**: diff --git a/relay-event-schema/src/protocol/stacktrace.rs b/relay-event-schema/src/protocol/stacktrace.rs index 3cd22f5f91b..c0f7fa6328f 100644 --- a/relay-event-schema/src/protocol/stacktrace.rs +++ b/relay-event-schema/src/protocol/stacktrace.rs @@ -76,6 +76,16 @@ pub struct Frame { #[metastructure(skip_serialization = "empty", pii = "maybe")] pub filename: Annotated, + /// The revision of the frame's file on a source server. + /// + /// This is only relevant for frames symbolicated with source + /// server information available, cf. . + /// + /// The meaning of this field depends on the version control system + /// used by the source server. + #[metastructure(skip_serialization = "empty", pii = "maybe")] + pub file_revision: Annotated, + /// Absolute path to the source file. #[metastructure(max_chars = 256, max_chars_allowance = 40)] #[metastructure(skip_serialization = "empty", pii = "maybe")] @@ -531,6 +541,7 @@ mod tests { "module": "app", "package": "/my/app", "filename": "myfile.rs", + "file_revision": "12345", "abs_path": "/path/to", "lineno": 2, "colno": 42, @@ -572,6 +583,7 @@ mod tests { module: Annotated::new("app".to_owned()), package: Annotated::new("/my/app".to_owned()), filename: Annotated::new("myfile.rs".into()), + file_revision: Annotated::new("12345".into()), abs_path: Annotated::new("/path/to".into()), lineno: Annotated::new(2), colno: Annotated::new(42),