File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
packages/apm/src/integrations Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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.' ,
You can’t perform that action at this time.
0 commit comments