1717import * as sinon from 'sinon' ;
1818import { defaultResource } from '@opentelemetry/resources' ;
1919import {
20- SEMRESATTRS_SERVICE_NAME ,
21- SEMRESATTRS_TELEMETRY_SDK_LANGUAGE ,
22- SEMRESATTRS_TELEMETRY_SDK_NAME ,
23- SEMRESATTRS_TELEMETRY_SDK_VERSION ,
20+ ATTR_SERVICE_NAME ,
21+ ATTR_TELEMETRY_SDK_LANGUAGE ,
22+ ATTR_TELEMETRY_SDK_NAME ,
23+ ATTR_TELEMETRY_SDK_VERSION ,
2424} from '@opentelemetry/semantic-conventions' ;
2525
2626export const mockedHrTimeMs = 1586347902211 ;
@@ -30,18 +30,18 @@ export function mockHrTime() {
3030}
3131
3232export const serviceName = defaultResource ( )
33- . attributes [ SEMRESATTRS_SERVICE_NAME ] ?. toString ( )
33+ . attributes [ ATTR_SERVICE_NAME ] ?. toString ( )
3434 . replace ( / \\ / g, '\\\\' )
3535 . replace ( / \n / g, '\\n' ) ;
3636export const sdkLanguage = defaultResource ( )
37- . attributes [ SEMRESATTRS_TELEMETRY_SDK_LANGUAGE ] ?. toString ( )
37+ . attributes [ ATTR_TELEMETRY_SDK_LANGUAGE ] ?. toString ( )
3838 . replace ( / \\ / g, '\\\\' )
3939 . replace ( / \n / g, '\\n' ) ;
4040export const sdkName = defaultResource ( )
41- . attributes [ SEMRESATTRS_TELEMETRY_SDK_NAME ] ?. toString ( )
41+ . attributes [ ATTR_TELEMETRY_SDK_NAME ] ?. toString ( )
4242 . replace ( / \\ / g, '\\\\' )
4343 . replace ( / \n / g, '\\n' ) ;
4444export const sdkVersion = defaultResource ( )
45- . attributes [ SEMRESATTRS_TELEMETRY_SDK_VERSION ] ?. toString ( )
45+ . attributes [ ATTR_TELEMETRY_SDK_VERSION ] ?. toString ( )
4646 . replace ( / \\ / g, '\\\\' )
4747 . replace ( / \n / g, '\\n' ) ;
0 commit comments