File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
relay-event-schema/src/protocol Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 29
29
- Add support for view hierarchy attachment scrubbing. ([ #4452 ] ( https://github.com/getsentry/relay/pull/4452 ) )
30
30
- Allow configuration of Relay's log format via an environment variable. ([ #4484 ] ( https://github.com/getsentry/relay/pull/4484 ) )
31
31
- Add span links to event schema. ([ #4486 ] ( https://github.com/getsentry/relay/pull/4486 ) )
32
+ - Add ` breadcrumb.origin ` field to event schema. ([ #4498 ] ( https://github.com/getsentry/relay/pull/4498 ) )
32
33
- Add Spring context to event schema. ([ #4502 ] ( https://github.com/getsentry/relay/pull/4502 ) )
33
34
34
35
** Bug Fixes** :
Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ pub struct Breadcrumb {
116
116
#[ metastructure( skip_serialization = "null" ) ]
117
117
pub event_id : Annotated < EventId > ,
118
118
119
+ /// The origin of the breadcrumb.
120
+ ///
121
+ /// A string representing the origin of the breadcrumb. This is typically used to identify the
122
+ /// source of the breadcrumb. For example hybrid SDKs can identify native breadcrumbs from
123
+ /// JS or Flutter.
124
+ #[ metastructure( skip_serialization = "empty" ) ]
125
+ pub origin : Annotated < String > ,
126
+
119
127
/// Additional arbitrary fields for forwards compatibility.
120
128
#[ metastructure( additional_properties) ]
121
129
pub other : Object < Value > ,
@@ -140,6 +148,7 @@ mod tests {
140
148
"a": "b"
141
149
},
142
150
"event_id": "52df9022835246eeb317dbd739ccd059",
151
+ "origin": "myorigin",
143
152
"c": "d"
144
153
}"# ;
145
154
@@ -153,6 +162,7 @@ mod tests {
153
162
"a": "b"
154
163
},
155
164
"event_id": "52df9022835246eeb317dbd739ccd059",
165
+ "origin": "myorigin",
156
166
"c": "d"
157
167
}"# ;
158
168
@@ -179,6 +189,7 @@ mod tests {
179
189
) ;
180
190
map
181
191
} ,
192
+ origin : Annotated :: new ( "myorigin" . to_string ( ) ) ,
182
193
} ) ;
183
194
184
195
assert_eq ! ( breadcrumb, Annotated :: from_json( input) . unwrap( ) ) ;
You can’t perform that action at this time.
0 commit comments