opencensus-go-exporter-ocagent icon indicating copy to clipboard operation
opencensus-go-exporter-ocagent copied to clipboard

all: consider removing ExporterOption

Open rakyll opened this issue 6 years ago • 0 comments

Functional options are a considered disadvantageous due their complexity, read https://middlemost.com/object-lifecycle/ for more and consider about exporting some fields on the Exporter type instead.

type Exporter struct {
     Addr string
     Insecure bool
     ServiceName string
}

func NewExporter(serviceName string) (*Exporter, error) 

rakyll avatar Oct 10 '18 18:10 rakyll