File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Unreleased
4+
5+ ### Fixes
6+
7+ - fix: adjust sentry.origin for log integration ([ #919 ] ( https://github.com/getsentry/sentry-rust/pull/919 ) ) by @lcian
8+
39## 0.45.0
410
511### Breaking changes
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ pub fn log_from_record(record: &log::Record<'_>) -> Log {
154154 attributes. insert ( "logger.line" . into ( ) , line. into ( ) ) ;
155155 }
156156
157- attributes. insert ( "sentry.origin" . into ( ) , "auto.logger .log" . into ( ) ) ;
157+ attributes. insert ( "sentry.origin" . into ( ) , "auto.log .log" . into ( ) ) ;
158158
159159 Log {
160160 level : convert_log_level_to_sentry_log_level ( record. level ( ) ) ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ fn test_log_logs() {
5151 ) ;
5252 assert_eq ! (
5353 info_log. attributes. get( "sentry.origin" ) . unwrap( ) . clone( ) ,
54- "auto.logger .log" . into( )
54+ "auto.log .log" . into( )
5555 ) ;
5656 }
5757 _ => panic ! ( "expected logs" ) ,
You can’t perform that action at this time.
0 commit comments