@@ -37,9 +37,9 @@ import { performance } from 'perf_hooks';
3737import { B3Propagator } from '@opentelemetry/propagator-b3' ;
3838import { JaegerPropagator } from '@opentelemetry/propagator-jaeger' ;
3939import {
40- SEMATTRS_EXCEPTION_MESSAGE ,
41- SEMATTRS_EXCEPTION_STACKTRACE ,
42- SEMATTRS_EXCEPTION_TYPE ,
40+ ATTR_EXCEPTION_MESSAGE ,
41+ ATTR_EXCEPTION_STACKTRACE ,
42+ ATTR_EXCEPTION_TYPE ,
4343} from '@opentelemetry/semantic-conventions' ;
4444
4545describe ( 'OpenTracing Shim' , ( ) => {
@@ -382,7 +382,7 @@ describe('OpenTracing Shim', () => {
382382 span . logEvent ( 'error' , payload ) ;
383383 assert . strictEqual ( otSpan . events [ 0 ] . name , 'exception' ) ;
384384 const expectedAttributes = {
385- [ SEMATTRS_EXCEPTION_MESSAGE ] : 'boom' ,
385+ [ ATTR_EXCEPTION_MESSAGE ] : 'boom' ,
386386 } ;
387387 assert . deepStrictEqual (
388388 otSpan . events [ 0 ] . attributes ,
@@ -401,9 +401,9 @@ describe('OpenTracing Shim', () => {
401401 assert . strictEqual ( otSpan . events [ 0 ] . name , 'exception' ) ;
402402 const expectedAttributes = {
403403 fault : 'meow' ,
404- [ SEMATTRS_EXCEPTION_TYPE ] : 'boom' ,
405- [ SEMATTRS_EXCEPTION_MESSAGE ] : 'oh no!' ,
406- [ SEMATTRS_EXCEPTION_STACKTRACE ] : 'pancakes' ,
404+ [ ATTR_EXCEPTION_TYPE ] : 'boom' ,
405+ [ ATTR_EXCEPTION_MESSAGE ] : 'oh no!' ,
406+ [ ATTR_EXCEPTION_STACKTRACE ] : 'pancakes' ,
407407 } ;
408408 assert . deepStrictEqual (
409409 otSpan . events [ 0 ] . attributes ,
@@ -450,7 +450,7 @@ describe('OpenTracing Shim', () => {
450450 Math . trunc ( tomorrow / 1000 )
451451 ) ;
452452 const expectedAttributes = {
453- [ SEMATTRS_EXCEPTION_MESSAGE ] : 'boom' ,
453+ [ ATTR_EXCEPTION_MESSAGE ] : 'boom' ,
454454 } ;
455455 assert . deepStrictEqual (
456456 otSpan . events [ 0 ] . attributes ,
@@ -475,9 +475,9 @@ describe('OpenTracing Shim', () => {
475475 const expectedAttributes = {
476476 event : 'error' ,
477477 fault : 'meow' ,
478- [ SEMATTRS_EXCEPTION_TYPE ] : 'boom' ,
479- [ SEMATTRS_EXCEPTION_MESSAGE ] : 'oh no!' ,
480- [ SEMATTRS_EXCEPTION_STACKTRACE ] : 'pancakes' ,
478+ [ ATTR_EXCEPTION_TYPE ] : 'boom' ,
479+ [ ATTR_EXCEPTION_MESSAGE ] : 'oh no!' ,
480+ [ ATTR_EXCEPTION_STACKTRACE ] : 'pancakes' ,
481481 } ;
482482 assert . deepStrictEqual (
483483 otSpan . events [ 0 ] . attributes ,
0 commit comments