Skip to content

Commit 29629e5

Browse files
committed
ref(tracing): use standard code attributes
1 parent 5c8ab31 commit 29629e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry-tracing/src/converters.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,13 @@ where
344344

345345
let event_meta = event.metadata();
346346
if let Some(module_path) = event_meta.module_path() {
347-
attributes.insert("tracing.module_path".to_owned(), module_path.into());
347+
attributes.insert("code.module.name".to_owned(), module_path.into());
348348
}
349349
if let Some(file) = event_meta.file() {
350-
attributes.insert("tracing.file".to_owned(), file.into());
350+
attributes.insert("code.file.path".to_owned(), file.into());
351351
}
352352
if let Some(line) = event_meta.line() {
353-
attributes.insert("tracing.line".to_owned(), line.into());
353+
attributes.insert("code.line.number".to_owned(), line.into());
354354
}
355355

356356
attributes.insert("sentry.origin".to_owned(), "auto.tracing".into());

0 commit comments

Comments
 (0)