Skip to content

Commit b642331

Browse files
BridgeARmontmanu
andauthored
refactor: use RESOURCE_NAME constant for resource tag check (#7197)
Co-authored-by: Chris Montoro <639255+montmanu@users.noreply.github.com>
1 parent 85edbfa commit b642331

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/dd-trace/src/plugins/util

packages/dd-trace/src/plugins/util/web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ function addResourceTag (context) {
506506
const { req, span } = context
507507
const tags = span.context()._tags
508508

509-
if (tags['resource.name']) return
509+
if (tags[RESOURCE_NAME]) return
510510

511511
const resource = [req.method, tags[HTTP_ROUTE]]
512512
.filter(Boolean)

0 commit comments

Comments
 (0)