@@ -285,8 +285,8 @@ func TestTracer(t *testing.T) {
285
285
Name : semconv .ExceptionEventName ,
286
286
Attributes : []attribute.KeyValue {
287
287
attribute .String ("graphql.errors.path" , "user" ),
288
- semconv .ExceptionTypeKey .String ("*gqlerror.Error " ),
289
- semconv .ExceptionMessageKey .String ("input: user forbidden" ),
288
+ semconv .ExceptionTypeKey .String ("github.com/aereal/otelgqlgen/test/resolvers.ForbiddenError " ),
289
+ semconv .ExceptionMessageKey .String ("forbidden" ),
290
290
attrStacktrace ,
291
291
},
292
292
},
@@ -301,8 +301,8 @@ func TestTracer(t *testing.T) {
301
301
Name : semconv .ExceptionEventName ,
302
302
Attributes : []attribute.KeyValue {
303
303
attribute .String ("graphql.errors.path" , "user" ),
304
- semconv .ExceptionTypeKey .String ("*gqlerror.Error " ),
305
- semconv .ExceptionMessageKey .String ("input: user forbidden" ),
304
+ semconv .ExceptionTypeKey .String ("github.com/aereal/otelgqlgen/test/resolvers.ForbiddenError " ),
305
+ semconv .ExceptionMessageKey .String ("forbidden" ),
306
306
attrStacktrace ,
307
307
},
308
308
},
@@ -372,17 +372,17 @@ func TestTracer(t *testing.T) {
372
372
Name : semconv .ExceptionEventName ,
373
373
Attributes : []attribute.KeyValue {
374
374
attribute .String ("graphql.errors.path" , "user.name" ),
375
- semconv .ExceptionTypeKey .String ("*gqlerror.Error " ),
376
- semconv .ExceptionMessageKey .String ("input: user.name invalid name" ),
375
+ semconv .ExceptionTypeKey .String ("*errors.errorString " ),
376
+ semconv .ExceptionMessageKey .String ("invalid name" ),
377
377
attrStacktrace ,
378
378
},
379
379
},
380
380
{
381
381
Name : semconv .ExceptionEventName ,
382
382
Attributes : []attribute.KeyValue {
383
383
attribute .String ("graphql.errors.path" , "user.age" ),
384
- semconv .ExceptionTypeKey .String ("*gqlerror.Error " ),
385
- semconv .ExceptionMessageKey .String ("input: user.age invalid age" ),
384
+ semconv .ExceptionTypeKey .String ("*errors.errorString " ),
385
+ semconv .ExceptionMessageKey .String ("invalid age" ),
386
386
attrStacktrace ,
387
387
},
388
388
},
@@ -397,17 +397,17 @@ func TestTracer(t *testing.T) {
397
397
Name : semconv .ExceptionEventName ,
398
398
Attributes : []attribute.KeyValue {
399
399
attribute .String ("graphql.errors.path" , "user.name" ),
400
- semconv .ExceptionTypeKey .String ("*gqlerror.Error " ),
401
- semconv .ExceptionMessageKey .String ("input: user.name invalid name" ),
400
+ semconv .ExceptionTypeKey .String ("*errors.errorString " ),
401
+ semconv .ExceptionMessageKey .String ("invalid name" ),
402
402
attrStacktrace ,
403
403
},
404
404
},
405
405
{
406
406
Name : semconv .ExceptionEventName ,
407
407
Attributes : []attribute.KeyValue {
408
408
attribute .String ("graphql.errors.path" , "user.age" ),
409
- semconv .ExceptionTypeKey .String ("*gqlerror.Error " ),
410
- semconv .ExceptionMessageKey .String ("input: user.age invalid age" ),
409
+ semconv .ExceptionTypeKey .String ("*errors.errorString " ),
410
+ semconv .ExceptionMessageKey .String ("invalid age" ),
411
411
attrStacktrace ,
412
412
},
413
413
},
0 commit comments