Skip to content

Commit 538b60c

Browse files
committed
fix: Remove callback
1 parent 142fbb7 commit 538b60c

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7-
- [apm] ref: Use `onresourcetimingbufferfull` and don't delete measurements (#2490)
7+
- [apm] ref: Remove performance clear entry calls (#2490)
88

99
## 5.14.0
1010

packages/apm/src/integrations/tracing.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -182,20 +182,6 @@ export class Tracing implements Integration {
182182
public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {
183183
Tracing._getCurrentHub = getCurrentHub;
184184

185-
if (global.performance) {
186-
// The Performance object has a limited buffer size, often 150 entries. At some point the buffer may overflow, in
187-
// which case we would not be able to use it to create/update spans.
188-
// https://developer.mozilla.org/en-US/docs/Web/API/Performance
189-
const oldCallback = performance.onresourcetimingbufferfull;
190-
performance.onresourcetimingbufferfull = function(_event: unknown): void {
191-
logger.warn('[Tracing]: Resource Timing Buffer is FULL! Increasing it to 300');
192-
performance.setResourceTimingBufferSize(Tracing._performanceCursor * 2);
193-
if (oldCallback) {
194-
oldCallback.apply(this, arguments);
195-
}
196-
};
197-
}
198-
199185
if (this._emitOptionsWarning) {
200186
logger.warn(
201187
'[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.',

0 commit comments

Comments
 (0)