Skip to content

Commit 7fbdd50

Browse files
authored
refactor(instrumentation-router): update semconv usage to ATTR_ exports (#2851)
1 parent f04c640 commit 7fbdd50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/node/opentelemetry-instrumentation-router/src/instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
InstrumentationNodeModuleFile,
2323
isWrapped,
2424
} from '@opentelemetry/instrumentation';
25-
import { SEMATTRS_HTTP_ROUTE } from '@opentelemetry/semantic-conventions';
25+
import { ATTR_HTTP_ROUTE } from '@opentelemetry/semantic-conventions';
2626

2727
import * as http from 'http';
2828
import type * as Router from 'router';
@@ -166,7 +166,7 @@ export class RouterInstrumentation extends InstrumentationBase {
166166
[AttributeNames.NAME]: fnName,
167167
[AttributeNames.VERSION]: this._moduleVersion,
168168
[AttributeNames.TYPE]: type,
169-
[SEMATTRS_HTTP_ROUTE]: route,
169+
[ATTR_HTTP_ROUTE]: route,
170170
};
171171

172172
const parent = api.context.active();

0 commit comments

Comments
 (0)