constructor(agent, pipePath) {
    this._agent = agent
    this.enabled = true
    this.metadata = {
      arn: null,
      function_version: null,
      execution_environment: process.env.AWS_EXECUTION_ENV,
      protocol_version: 16,
      agent_version: agent.version,
      agent_language: 'nodejs'
    }
    this.payload = {}
    this.pipePath = pipePath || process.env.NEWRELIC_PIPE_PATH || defaultPipePath
  }
Constructs a new serverless collector instance with the give agent.

@class
@classdesc
 A helper class for wrapping modules with segments
@param {Agent} agent - The agent this collector will use
@param {string} pipePath path of the named pipe to the Lambda extension, if it's enabled