File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ where
164
164
return ;
165
165
}
166
166
167
- let ( description, _data ) = extract_span_data ( attrs) ;
167
+ let ( description, data ) = extract_span_data ( attrs) ;
168
168
let op = span. name ( ) ;
169
169
170
170
// Spans don't always have a description, this ensures our data is not empty,
@@ -186,6 +186,12 @@ where
186
186
sentry_core:: start_transaction ( ctx) . into ( )
187
187
}
188
188
} ;
189
+ // Add the data from the original span to the sentry span.
190
+ // This comes from typically the `fields` in `tracing::instrument`.
191
+ for ( key, value) in data {
192
+ sentry_span. set_data ( & key, value) ;
193
+ }
194
+
189
195
sentry_core:: configure_scope ( |scope| scope. set_span ( Some ( sentry_span. clone ( ) ) ) ) ;
190
196
191
197
let mut extensions = span. extensions_mut ( ) ;
You can’t perform that action at this time.
0 commit comments