Skip to content

Commit

Permalink
feat: report path and route with fastify backend in nestjs-core i…
Browse files Browse the repository at this point in the history
…nstrumentation (#714)

Co-authored-by: Rauno Viskus <Rauno56@users.noreply.github.com>
  • Loading branch information
anchan828 and rauno56 committed Nov 5, 2021
1 parent 3d4a07f commit 62a04c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ function createWrapCreateHandler(tracer: api.Tracer, moduleVersion?: string) {
[AttributeNames.VERSION]: moduleVersion,
[AttributeNames.TYPE]: NestType.REQUEST_CONTEXT,
[SemanticAttributes.HTTP_METHOD]: req.method,
[SemanticAttributes.HTTP_URL]: req.originalUrl,
[SemanticAttributes.HTTP_ROUTE]: req.route.path,
[SemanticAttributes.HTTP_URL]: req.originalUrl || req.url,
[SemanticAttributes.HTTP_ROUTE]: req.route?.path || req.routerPath,
[AttributeNames.CONTROLLER]: instanceName,
[AttributeNames.CALLBACK]: callbackName,
},
Expand Down

0 comments on commit 62a04c7

Please sign in to comment.