diff --git a/accelerate/nodejs-tracing/index.test.ts b/accelerate/nodejs-tracing/index.test.ts index c35073bc375b..08bdca8612c2 100644 --- a/accelerate/nodejs-tracing/index.test.ts +++ b/accelerate/nodejs-tracing/index.test.ts @@ -9,7 +9,7 @@ import { ReadableSpan, SimpleSpanProcessor, } from '@opentelemetry/sdk-trace-base' -import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions' +import { SEMRESATTRS_SERVICE_NAME, SEMRESATTRS_SERVICE_VERSION } from '@opentelemetry/semantic-conventions' import { PrismaInstrumentation } from '@prisma/instrumentation' import { PrismaClient } from '@prisma/client' import { withAccelerate } from '@prisma/extension-accelerate' @@ -24,8 +24,8 @@ beforeAll(() => { const basicTracerProvider = new BasicTracerProvider({ resource: new Resource({ - [SemanticResourceAttributes.SERVICE_NAME]: `test-name`, - [SemanticResourceAttributes.SERVICE_VERSION]: '1.0.0', + [SEMRESATTRS_SERVICE_NAME]: 'test-name', + [SEMRESATTRS_SERVICE_VERSION]: '1.0.0', }), })