Skip to content

Commit f1f8ed2

Browse files
authored
Merge branch 'main' into trentm-semconv-up-instr-pino
2 parents 6344cdd + 7fbdd50 commit f1f8ed2

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)