@sentry/opentelemetry 9.38.0 → 9.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/esm/index.js
CHANGED
|
@@ -1745,6 +1745,14 @@ class SentrySpanExporter {
|
|
|
1745
1745
|
sentSpans.add(span);
|
|
1746
1746
|
const transactionEvent = createTransactionForOtelSpan(span);
|
|
1747
1747
|
|
|
1748
|
+
// Add an attribute to the transaction event to indicate that this transaction is an orphaned transaction
|
|
1749
|
+
if (root.parentNode && this._sentSpans.has(root.parentNode.id)) {
|
|
1750
|
+
const traceData = transactionEvent.contexts?.trace?.data;
|
|
1751
|
+
if (traceData) {
|
|
1752
|
+
traceData['sentry.parent_span_already_sent'] = true;
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1748
1756
|
// We'll recursively add all the child spans to this array
|
|
1749
1757
|
const spans = transactionEvent.spans || [];
|
|
1750
1758
|
|