Skip to content

Commit 9ee8dc7

Browse files
authored
test(instrumentation-graphql): update semconv usage to ATTR_ exports (#2848)
1 parent b698cb2 commit 9ee8dc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/node/opentelemetry-instrumentation-graphql/test/graphql.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
SimpleSpanProcessor,
2222
} from '@opentelemetry/sdk-trace-base';
2323
import { Span, SpanStatusCode } from '@opentelemetry/api';
24-
import { SEMATTRS_EXCEPTION_MESSAGE } from '@opentelemetry/semantic-conventions';
24+
import { ATTR_EXCEPTION_MESSAGE } from '@opentelemetry/semantic-conventions';
2525
import * as assert from 'assert';
2626
import type * as graphqlTypes from 'graphql';
2727
import { GraphQLInstrumentation } from '../src';
@@ -1448,7 +1448,7 @@ describe('graphql', () => {
14481448
const resolveEvent = resolveSpan.events[0];
14491449
assert.deepStrictEqual(resolveEvent.name, 'exception');
14501450
assert.deepStrictEqual(
1451-
resolveEvent.attributes?.[SEMATTRS_EXCEPTION_MESSAGE],
1451+
resolveEvent.attributes?.[ATTR_EXCEPTION_MESSAGE],
14521452
'sync resolver error from tests'
14531453
);
14541454

0 commit comments

Comments
 (0)