Skip to content

Commit

Permalink
Prevent accessing deprecated Fastify property in NestJS instrumentati…
Browse files Browse the repository at this point in the history
…on (#1699)

Co-authored-by: Amir Blum <amirgiraffe@gmail.com>
  • Loading branch information
brendenpalmer and blumamir committed Sep 25, 2023
1 parent 76dd559 commit d55171f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ function createWrapCreateHandler(tracer: api.Tracer, moduleVersion?: string) {
[AttributeNames.TYPE]: NestType.REQUEST_CONTEXT,
[SemanticAttributes.HTTP_METHOD]: req.method,
[SemanticAttributes.HTTP_URL]: req.originalUrl || req.url,
[SemanticAttributes.HTTP_ROUTE]: req.route?.path || req.routerPath,
[SemanticAttributes.HTTP_ROUTE]:
req.route?.path || req.routeOptions?.url || req.routerPath,
[AttributeNames.CONTROLLER]: instanceName,
[AttributeNames.CALLBACK]: callbackName,
},
Expand Down

0 comments on commit d55171f

Please sign in to comment.