diff --git a/CHANGELOG.md b/CHANGELOG.md index fd0a935195e4..1088d95c622b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +- [apm] ref: Remove performance clear entry calls (#2490) + ## 5.14.0 - [apm] feat: Add a simple heartbeat check, if activities don't change in 3 beats, finish the transaction (#2478) diff --git a/packages/apm/src/integrations/tracing.ts b/packages/apm/src/integrations/tracing.ts index 34b2eb685868..7f284e848d5f 100644 --- a/packages/apm/src/integrations/tracing.ts +++ b/packages/apm/src/integrations/tracing.ts @@ -603,14 +603,6 @@ export class Tracing implements Integration { addSpan(evaluation); } - // The Performance object has a limited buffer size, often 150 entries. At some point the buffer may overflow, in - // which case we would not be able to use it to create/update spans. Therefore, after we have processed entries to - // report to Sentry, we clear the buffer in an attempt to allow for more entries to be added in the future. - // https://developer.mozilla.org/en-US/docs/Web/API/Performance - logger.log('[Tracing] Clearing most performance marks'); - performance.clearMarks(); - performance.clearMeasures(); - performance.clearResourceTimings(); Tracing._performanceCursor = Math.max(performance.getEntries().length - 1, 0); // tslint:enable: no-unsafe-any