lib/instrumentation/modules/http2.js
function wrapCreateServer (original) {
    return function wrappedCreateServer (options, handler) {
      var server = original.apply(this, arguments)
      shimmer.wrap(server.constructor.prototype, 'emit', wrapEmit)
      wrappedCreateServer[symbols.unwrap]()
      return server
    }
  }
function wrapCreateServer (original) {
    return function wrappedCreateServer (options, handler) {
      var server = original.apply(this, arguments)
      shimmer.wrap(server.constructor.prototype, 'emit', wrapEmit)
      wrappedCreateServer[symbols.unwrap]()
      return server
    }
  }
function wrapCreateServer ( original ) { return function wrappedCreateServer ( options , handler ) { var server = original . apply ( this , arguments ) shimmer . wrap ( server . constructor . prototype , 'emit' , wrapEmit ) wrappedCreateServer [ symbols . unwrap ] ( ) return server } }
The `createServer` function will unpatch itself after patching the first server prototype it patches.
The createServer function will unpatch itself after patching the first server prototype it patches .