File tree Expand file tree Collapse file tree
instrumentations/core/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -415,8 +415,10 @@ Collector.prototype._getSeverityHintFromCache = function (cacheId) {
415415
416416Collector . prototype . collect = function ( ) {
417417 var self = this
418+ var lockedCount = 0
418419 Object . keys ( this . _eventBuffers ) . forEach ( function ( key ) {
419420 if ( self . _eventBuffers [ key ] . locks > 0 ) {
421+ ++ lockedCount
420422 return
421423 } else {
422424 if ( ! self . _eventBuffers [ key ] . skipped &&
@@ -437,6 +439,7 @@ Collector.prototype.collect = function () {
437439 }
438440 }
439441 } )
442+ debug ( '#collect' , lockedCount + ' buffers locked' )
440443 return this . _sampler . flush ( ) . reduce ( function ( acc , x ) {
441444 Array . prototype . push . apply ( acc , x )
442445 return acc
Original file line number Diff line number Diff line change 1- var debug = require ( 'debug' ) ( 'risingstack/trace:agent: instrumentations' )
1+ var debug = require ( 'debug' ) ( 'risingstack/trace:instrumentations' )
22var url = require ( 'url' )
33var microtime = require ( '../../../optionalDependencies/microtime' )
44
Original file line number Diff line number Diff line change 11var microtime = require ( '../../../optionalDependencies/microtime' )
2- var debug = require ( 'debug' ) ( 'risingstack/trace:agent: instrumentations' )
2+ var debug = require ( 'debug' ) ( 'risingstack/trace:instrumentations' )
33var Shimmer = require ( '../../../utils/shimmer' )
44
55var util = require ( './util' )
You can’t perform that action at this time.
0 commit comments