From f656ea02d099193a55e316d038846e86adc566b9 Mon Sep 17 00:00:00 2001 From: mrickard Date: Tue, 30 Apr 2024 17:15:58 -0400 Subject: [PATCH] chore: Added truncateExempt flag for port properties, and restored defaults that had been stripped from JSDoc declarations Signed-off-by: mrickard --- lib/spans/span-event.js | 2 +- lib/spans/streaming-span-event.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spans/span-event.js b/lib/spans/span-event.js index 0d7e59c5da..6970a09099 100644 --- a/lib/spans/span-event.js +++ b/lib/spans/span-event.js @@ -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 diff --git a/lib/spans/streaming-span-event.js b/lib/spans/streaming-span-event.js index 70c58489a3..c89a271eef 100644 --- a/lib/spans/streaming-span-event.js +++ b/lib/spans/streaming-span-event.js @@ -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 }