From 91fff9b25c20b10d50b84a4831d6f683be924adc Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Thu, 1 Oct 2026 10:59:02 +0200 Subject: [PATCH 1/2] ref(protocol): Add `file_revision` field to `Frame` Symbolicator PR https://github.com/getsentry/symbolicator/pull/2071 added a `file_revision` field to stack frames. We add the same field to the protocol here. --- relay-event-schema/src/protocol/stacktrace.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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), From 436914691447c72937b59da40a3ede607505e4cd Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Thu, 1 Oct 2026 11:23:30 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cefa18a2c02..0178c74cfe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - Copy the INP interaction type to the INP web vital metric. ([#6420](https://github.com/getsentry/relay/pull/6420)) - 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)) +- Add `file_revision` field to the stack frame schema. ([#6451](https://github.com/getsentry/relay/pull/6451)) **Bug Fixes**: