Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**:

Expand Down
12 changes: 12 additions & 0 deletions relay-event-schema/src/protocol/stacktrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ pub struct Frame {
#[metastructure(skip_serialization = "empty", pii = "maybe")]
pub filename: Annotated<NativeImagePath>,

/// The revision of the frame's file on a source server.
///
/// This is only relevant for frames symbolicated with source
/// server information available, cf. <https://github.com/getsentry/symbolicator/pull/2071>.
///
/// 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<String>,

/// Absolute path to the source file.
#[metastructure(max_chars = 256, max_chars_allowance = 40)]
#[metastructure(skip_serialization = "empty", pii = "maybe")]
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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),
Expand Down
Loading