Skip to content
Open
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixes

- fix: adjust sentry.origin for log integration ([#919](https://github.com/getsentry/sentry-rust/pull/919)) by @lcian

## 0.45.0

### Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion sentry-log/src/converters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub fn log_from_record(record: &log::Record<'_>) -> Log {
attributes.insert("logger.line".into(), line.into());
}

attributes.insert("sentry.origin".into(), "auto.logger.log".into());
attributes.insert("sentry.origin".into(), "auto.log.log".into());

Log {
level: convert_log_level_to_sentry_log_level(record.level()),
Expand Down
2 changes: 1 addition & 1 deletion sentry/tests/test_log_logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn test_log_logs() {
);
assert_eq!(
info_log.attributes.get("sentry.origin").unwrap().clone(),
"auto.logger.log".into()
"auto.log.log".into()
);
}
_ => panic!("expected logs"),
Expand Down