@sentry/opentelemetry 9.29.0 → 9.30.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/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -1726,9 +1726,6 @@ class SentrySpanExporter {
|
|
|
1726
1726
|
|
|
1727
1727
|
this.flushSentSpanCache();
|
|
1728
1728
|
const sentSpans = this._maybeSend(finishedSpans);
|
|
1729
|
-
for (const span of finishedSpans) {
|
|
1730
|
-
this._sentSpans.set(span.spanContext().spanId, Date.now() + DEFAULT_TIMEOUT * 1000);
|
|
1731
|
-
}
|
|
1732
1729
|
|
|
1733
1730
|
const sentSpanCount = sentSpans.size;
|
|
1734
1731
|
const remainingOpenSpanCount = finishedSpans.length - sentSpanCount;
|
|
@@ -1737,7 +1734,10 @@ class SentrySpanExporter {
|
|
|
1737
1734
|
`SpanExporter exported ${sentSpanCount} spans, ${remainingOpenSpanCount} spans are waiting for their parent spans to finish`,
|
|
1738
1735
|
);
|
|
1739
1736
|
|
|
1737
|
+
const expirationDate = Date.now() + DEFAULT_TIMEOUT * 1000;
|
|
1738
|
+
|
|
1740
1739
|
for (const span of sentSpans) {
|
|
1740
|
+
this._sentSpans.set(span.spanContext().spanId, expirationDate);
|
|
1741
1741
|
const bucketEntry = this._spansToBucketEntry.get(span);
|
|
1742
1742
|
if (bucketEntry) {
|
|
1743
1743
|
bucketEntry.spans.delete(span);
|