-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Added otel compliant attributes for database spans #2173
Conversation
e67b5f5
to
b4b7a08
Compare
lib/spans/streaming-span-event.js
Outdated
@@ -64,7 +64,7 @@ class StreamingSpanEvent { | |||
* | |||
* @param {string} key Name of the attribute to be stored. | |||
* @param {string|boolean|number} value Value of the attribute to be stored. | |||
* @param {boolean} [truncateExempt=false] Set to true if attribute should not be truncated. | |||
* @param {boolean} [truncateExempt] Set to true if attribute should not be truncated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this appears to default to false, why was the jsdoc updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's weird is that I didn't update that. That may be fallout from running lint or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or it's our pre-commit hooks.
Signed-off-by: mrickard <[email protected]>
…faults that had been stripped from JSDoc declarations Signed-off-by: mrickard <[email protected]>
…rties Signed-off-by: mrickard <[email protected]>
7f0e322
to
707ab6e
Compare
Signed-off-by: mrickard <[email protected]>
Description
Added OTEL-compliant
db.system
,server.address
, andserver.port
properties to db spans.How to Test
This PR includes additions to
test/unit/spans/span-event.test.js
andtest/unit/spans/streaming-span-event.test.js
, so running unit tests will include these.Related Issues
Closes #2149
Closes NR-260092