OpenTelemetry Protocol (OTLP) Span Exporter.
To constructs a new Otlptrace Exporter and starts it:
exp, err := otlptrace.New(ctx, opts...)
go get -u go.opentelemetry.io/otel/exporters/otlp/otlptrace
otlptrace
package implements a span exporter that uses a otlptrace.Client
interface.
otlptrace.Client
manages connections to the collector, handles the transformation of data into wire format,
and the transmission of that data to the collector.
The otlptracegrpc
package implements a gRPC span exporter.
The otlptracehttp
package implements a HTTP span exporter.