-
Notifications
You must be signed in to change notification settings - Fork 346
Open
Labels
Description
Package Name
datadog-plugin-ws
Package Version(s)
No response
Describe the feature you'd like
Currently websocket.receive
spans use http path as resource name, which is not suitable as resource names should have low cardinality and normalized (I think). Using http route seems better.

Reference implementation for http server spans:
dd-trace-js/packages/dd-trace/src/plugins/util/web.js
Lines 516 to 527 in bae4e64
function addResourceTag (context) { | |
const { req, span } = context | |
const tags = span.context()._tags | |
if (tags['resource.name']) return | |
const resource = [req.method, tags[HTTP_ROUTE]] | |
.filter(Boolean) | |
.join(' ') | |
span.setTag(RESOURCE_NAME, resource) | |
} |
Is your feature request related to a problem?
No response
Describe alternatives you've considered
No response
Additional context
No response