@@ -22,11 +22,10 @@ import {
2222 SimpleSpanProcessor ,
2323} from '@opentelemetry/sdk-trace-base' ;
2424import {
25- SEMATTRS_CODE_FILEPATH ,
26- SEMATTRS_CODE_FUNCTION ,
27- SEMATTRS_CODE_LINENO ,
28- SEMATTRS_CODE_NAMESPACE ,
29- SEMRESATTRS_SERVICE_NAME ,
25+ ATTR_CODE_FILE_PATH ,
26+ ATTR_CODE_FUNCTION_NAME ,
27+ ATTR_CODE_LINE_NUMBER ,
28+ ATTR_SERVICE_NAME ,
3029} from '@opentelemetry/semantic-conventions' ;
3130import { resourceFromAttributes } from '@opentelemetry/resources' ;
3231
@@ -57,7 +56,7 @@ describe('CucumberInstrumentation', () => {
5756 const spanProcessor = new SimpleSpanProcessor ( memoryExporter ) ;
5857 const provider = new NodeTracerProvider ( {
5958 resource : resourceFromAttributes ( {
60- [ SEMRESATTRS_SERVICE_NAME ] : 'CucumberInstrumentation' ,
59+ [ ATTR_SERVICE_NAME ] : 'CucumberInstrumentation' ,
6160 } ) ,
6261 spanProcessors : [ spanProcessor ] ,
6362 } ) ;
@@ -169,10 +168,9 @@ describe('CucumberInstrumentation', () => {
169168 assert ( parent , 'Expected a parent span' ) ;
170169
171170 assert . deepEqual ( parent . attributes , {
172- [ SEMATTRS_CODE_FILEPATH ] : path . join ( 'test' , 'current.feature' ) ,
173- [ SEMATTRS_CODE_LINENO ] : 7 ,
174- [ SEMATTRS_CODE_FUNCTION ] : 'Button pushing' ,
175- [ SEMATTRS_CODE_NAMESPACE ] : 'Basic' ,
171+ [ ATTR_CODE_FILE_PATH ] : path . join ( 'test' , 'current.feature' ) ,
172+ [ ATTR_CODE_LINE_NUMBER ] : 7 ,
173+ [ ATTR_CODE_FUNCTION_NAME ] : 'Basic Button pushing' ,
176174 [ AttributeNames . FEATURE_DESCRIPTION ] :
177175 ' A very basic feature file with a single scenario' ,
178176 [ AttributeNames . FEATURE_LANGUAGE ] : 'en' ,
0 commit comments