@@ -46,7 +46,7 @@ import (
46
46
"go.opentelemetry.io/collector/consumer"
47
47
"go.opentelemetry.io/collector/pdata/pcommon"
48
48
"go.opentelemetry.io/collector/pdata/plog"
49
- semconv "go.opentelemetry.io/collector/semconv/v1.5 .0"
49
+ semconv "go.opentelemetry.io/collector/semconv/v1.27 .0"
50
50
"golang.org/x/sync/semaphore"
51
51
"google.golang.org/protobuf/proto"
52
52
"google.golang.org/protobuf/testing/protocmp"
@@ -280,6 +280,7 @@ func TestConsumerConsumeLogsException(t *testing.T) {
280
280
record2 := newLogRecord ("bar" )
281
281
record2 .Attributes ().PutStr ("event.name" , "crash" )
282
282
record2 .Attributes ().PutStr ("event.domain" , "device" )
283
+ record2 .Attributes ().PutBool ("exception.escaped" , true )
283
284
record2 .Attributes ().PutStr ("exception.type" , "HighLevelException" )
284
285
record2 .Attributes ().PutStr ("exception.message" , "MidLevelException: LowLevelException" )
285
286
record2 .Attributes ().PutStr ("exception.stacktrace" , `
@@ -359,7 +360,7 @@ Caused by: LowLevelException
359
360
Exception : & modelpb.Exception {
360
361
Type : "HighLevelException" ,
361
362
Message : "MidLevelException: LowLevelException" ,
362
- Handled : newBool (true ),
363
+ Handled : newBool (false ),
363
364
Stacktrace : []* modelpb.StacktraceFrame {{
364
365
Classname : "Junk" ,
365
366
Function : "a" ,
@@ -373,7 +374,7 @@ Caused by: LowLevelException
373
374
}},
374
375
Cause : []* modelpb.Exception {{
375
376
Message : "MidLevelException: LowLevelException" ,
376
- Handled : newBool (true ),
377
+ Handled : newBool (false ),
377
378
Stacktrace : []* modelpb.StacktraceFrame {{
378
379
Classname : "Junk" ,
379
380
Function : "c" ,
@@ -397,7 +398,7 @@ Caused by: LowLevelException
397
398
}},
398
399
Cause : []* modelpb.Exception {{
399
400
Message : "LowLevelException" ,
400
- Handled : newBool (true ),
401
+ Handled : newBool (false ),
401
402
Stacktrace : []* modelpb.StacktraceFrame {{
402
403
Classname : "Junk" ,
403
404
Function : "e" ,
0 commit comments