code: func New(parsedConfig *Config, manager *plugins.Manager) *Plugin {
  
  	plugin := &Plugin{
  		manager:  manager,
  		config:   *parsedConfig,
  		stop:     make(chan chan struct{}),
  		buffer:   newLogBuffer(*parsedConfig.Reporting.BufferSizeLimitBytes),
  		enc:      newChunkEncoder(*parsedConfig.Reporting.UploadSizeLimitBytes),
  		reconfig: make(chan interface{}),
  	}
  
  	return plugin
  }
docs: // New returns a new Plugin with the given config.