File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
opentelemetry-appender-tracing/src Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -433,11 +433,13 @@ mod tests {
433433 ) ;
434434 // Validate event name - tracing defaults to event followed source & line number
435435 // Assert is doing "contains" check to avoid tests failing when line number changes.
436+ // and also account for the fact that the module path is different on different platforms.
437+ // Ex.: The path will be different on a Windows and Linux machine.
436438 assert ! ( log
437439 . record
438440 . event_name( )
439441 . expect( "event_name is expected" )
440- . contains( "event opentelemetry-appender-tracing/src/layer.rs " ) , ) ;
442+ . contains( "event opentelemetry-appender-tracing" ) , ) ;
441443 }
442444
443445 #[ test]
Original file line number Diff line number Diff line change @@ -430,6 +430,11 @@ mod tests {
430430 struct ValueB ( u64 ) ;
431431 let _outer_guard = Context :: new ( ) . with_value ( ValueA ( "a" ) ) . attach ( ) ;
432432
433+ /// s = "foo"
434+ /// s.toUpper() = "FOO"
435+ /// baggage == {k=v}
436+ /// baggage.AddA(); {k=v, k2=v2}
437+
433438 // Only value `a` is set
434439 let current = Context :: current ( ) ;
435440 assert_eq ! ( current. get( ) , Some ( & ValueA ( "a" ) ) ) ;
You can’t perform that action at this time.
0 commit comments