Skip to content

Commit c041f9a

Browse files
authored
Added copy of HTTP_ROUTE to the metrics attribute
1 parent f9f5123 commit c041f9a

File tree

1 file changed

+1
-0
lines changed
  • plugins/node/instrumentation-undici/src

1 file changed

+1
-0
lines changed

plugins/node/instrumentation-undici/src/undici.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ export class UndiciInstrumentation extends InstrumentationBase<UndiciInstrumenta
470470
SemanticAttributes.SERVER_PORT,
471471
SemanticAttributes.URL_SCHEME,
472472
SemanticAttributes.ERROR_TYPE,
473+
SemanticAttributes.HTTP_ROUTE,
473474
];
474475
keysToCopy.forEach(key => {
475476
if (key in attributes) {

0 commit comments

Comments
 (0)