We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 915b320 commit 23a8594Copy full SHA for 23a8594
lib/spans/span-link.js
@@ -66,8 +66,10 @@ class SpanLink {
66
this.intrinsics.linkedSpanId = link.context.spanId
67
this.intrinsics.linkedTraceId = link.context.traceId
68
69
- for (const [key, value] of Object.entries(link.attributes)) {
70
- this.userAttributes.addAttribute(DESTINATIONS.TRANS_SEGMENT, key, value)
+ if (Object.hasOwn(link, 'attributes') === true) {
+ for (const [key, value] of Object.entries(link.attributes)) {
71
+ this.userAttributes.addAttribute(DESTINATIONS.TRANS_SEGMENT, key, value)
72
+ }
73
}
74
75
0 commit comments