Skip to content

Commit

Permalink
chore(tracing): update deprecated SemanticResourceAttributes imports (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 authored Jun 3, 2024
1 parent feebec2 commit c2d832d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions accelerate/nodejs-tracing/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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',
}),
})

Expand Down

0 comments on commit c2d832d

Please sign in to comment.