Skip to content

Commit

Permalink
chore: Added truncateExempt flag for port properties, and restored de…
Browse files Browse the repository at this point in the history
…faults that had been stripped from JSDoc declarations

Signed-off-by: mrickard <maurice@mauricerickard.com>
  • Loading branch information
mrickard committed Apr 30, 2024
1 parent 004880f commit f656ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/spans/span-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class DatastoreSpanEvent extends SpanEvent {
if (attributes.port_path_or_id) {
const address = `${attributes.host}:${attributes.port_path_or_id}`
this.addAttribute('peer.address', address)
this.addAttribute('server.port', attributes.port_path_or_id)
this.addAttribute('server.port', attributes.port_path_or_id, true)
attributes.port_path_or_id = null
}
attributes.host = null
Expand Down
2 changes: 1 addition & 1 deletion lib/spans/streaming-span-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class StreamingDatastoreSpanEvent extends StreamingSpanEvent {
if (agentAttributes.port_path_or_id) {
const address = `${agentAttributes.host}:${agentAttributes.port_path_or_id}`
this.addAgentAttribute('peer.address', address)
this.addAgentAttribute('server.port', agentAttributes.port_path_or_id)
this.addAgentAttribute('server.port', agentAttributes.port_path_or_id, true)
agentAttributes.port_path_or_id = null
}

Expand Down

0 comments on commit f656ea0

Please sign in to comment.