We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf25eb1 commit 8d9687dCopy full SHA for 8d9687d
plugins/node/opentelemetry-instrumentation-fastify/src/instrumentation.ts
@@ -96,8 +96,7 @@ export class FastifyInstrumentation extends InstrumentationBase {
96
const rpcMetadata = getRPCMetadata(context.active());
97
const routeName = request.routerPath;
98
if (routeName && rpcMetadata?.type === RPCType.HTTP) {
99
- rpcMetadata.span.setAttribute(SemanticAttributes.HTTP_ROUTE, routeName);
100
- rpcMetadata.span.updateName(`${request.method} ${routeName}`);
+ rpcMetadata.route = routeName;
101
}
102
done();
103
};
0 commit comments