We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1204302 commit ed26a7eCopy full SHA for ed26a7e
packages/apm/src/integrations/tracing.ts
@@ -852,7 +852,6 @@ export class Tracing implements Integration {
852
}
853
854
const count = Object.keys(Tracing._activities).length;
855
-
856
Tracing._log('[Tracing] activies count', count);
857
858
if (count === 0 && Tracing._activeTransaction) {
@@ -862,7 +861,9 @@ export class Tracing implements Integration {
862
861
// Remeber timestampWithMs is in seconds, timeout is in ms
863
const end = timestampWithMs() + timeout / 1000;
864
setTimeout(() => {
865
- Tracing.finishIdleTransaction(end);
+ if (Object.keys(Tracing._activities).length === 0 && Tracing._activeTransaction) {
+ Tracing.finishIdleTransaction(end);
866
+ }
867
}, timeout);
868
869
0 commit comments