incrementTraceRollup(key, durationMs, count = 1) {
    const context = tracker.getTracked();
    if (!context) {
      // valid, since we can end up in our instrumentation outside of requests we're tracking
      return;
    }

    let countKey = "rollups." + key + ".count";
    let durationMsKey = "rollups." + key + ".duration_ms";

    context.rollupContext[countKey] = (context.rollupContext[countKey] || 0) + count;
    context.rollupContext[durationMsKey] = (context.rollupContext[durationMsKey] || 0) + durationMs;
  }
//    It is optional and defaults to 1.
It is optional and defaults to 1.
It is optional and defaults to 1 .
incrementTraceRollup(key, durationMs, count = 1) {
    const context = tracker.getTracked();
    if (!context) {
      return;
    }
    let countKey = "rollups." + key + ".count";
    let durationMsKey = "rollups." + key + ".duration_ms";
    context.rollupContext[countKey] = (context.rollupContext[countKey] || 0) + count;
    context.rollupContext[durationMsKey] = (context.rollupContext[durationMsKey] || 0) + durationMs;
  }
incrementTraceRollup ( key , durationMs , count = 1 ) { const context = tracker . getTracked ( ) ; if ( ! context ) { return ; } let countKey = "rollups." + key + ".count" ; let durationMsKey = "rollups." + key + ".duration_ms" ; context . rollupContext [ countKey ] = ( context . rollupContext [ countKey ] || 0 ) + count ; context . rollupContext [ durationMsKey ] = ( context . rollupContext [ durationMsKey ] || 0 ) + durationMs ; }
It is optional and defaults to 1.
It is optional and defaults to 1 .
// valid, since we can end up in our instrumentation outside of requests we're tracking