function setLibrary(library) {
  this._metrics = {
    PREFIX: 'MessageBroker/',
    LIBRARY: library,
    PRODUCE: 'Produce/',
    CONSUME: 'Consume/',
    PURGE: 'Purge/',
    NAMED: 'Named/',
    TEMP: 'Temp'
  }

  if (LIBRARY_TRANSPORT_TYPES[library]) {
    this._transportType = LIBRARY_TRANSPORT_TYPES[library]
  }

  this._logger = this._logger.child({ library })
  this.logger.trace({ metrics: this._metrics }, 'Library metric names set')
}
Sets the vendor of the message broker being instrumented.

This is used to generate the names for metrics and segments. If a string is
passed, metric names will be generated using that.

@memberof MessageShim.prototype
@param {MessageShim.LIBRARY_NAMES|string} library
 The name of the message broker library. Use one of the well-known constants
 listed in {@link MessageShim.LIBRARY_NAMES} if available for the library.
@see MessageShim.LIBRARY_NAMES