@bonniernews/datadawg
Advanced tools
Comparing version 2.0.1 to 2.0.2
14
index.js
@@ -68,10 +68,12 @@ /** @type {import('dd-trace').Tracer} */ | ||
if (span) { | ||
const rootSpan = span.context()._trace.started[0]; | ||
const keys = Object.keys(tags); | ||
for (const [index, key] of keys.entries()) { | ||
if (key in rootSpan.context()._tags) { | ||
tags[key] = combineObjects(rootSpan.context()._tags, tags, key); | ||
const rootSpan = span?.context()._trace.started[0]; | ||
if (rootSpan) { | ||
const keys = Object.keys(tags); | ||
for (const key of keys) { | ||
if (key in rootSpan.context()._tags) { | ||
tags[key] = combineObjects(rootSpan.context()._tags, tags, key); | ||
} | ||
} | ||
rootSpan?.addTags(tags); | ||
} | ||
rootSpan?.addTags(tags); | ||
} | ||
@@ -78,0 +80,0 @@ } |
{ | ||
"name": "@bonniernews/datadawg", | ||
"description": "Simple configuration management", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Bonnier News", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
9267
143