package otlptrace

Import Path
	go.opentelemetry.io/otel/exporters/otlp/otlptrace (on go.dev)

Dependency Relation
	imports 7 packages, and imported by 3 packages

Involved Source Files clients.go Package otlptrace contains abstractions for OTLP span exporters. See the official OTLP span exporter implementations: - [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc], - [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp]. exporter.go version.go
Package-Level Type Names (total 2)
/* sort by: | */
Client manages connections to the collector, handles the transformation of data into wire format, and the transmission of that data to the collector. Start should establish connection(s) to endpoint(s). It is called just once by the exporter, so the implementation does not need to worry about idempotence and locking. Stop should close the connections. The function is called only once by the exporter, so the implementation does not need to worry about idempotence, but it may be called concurrently with UploadTraces, so proper locking is required. The function serves as a synchronization point - after the function returns, the process of closing connections is assumed to be finished. UploadTraces should transform the passed traces to the wire format and send it to the collector. May be called concurrently. func go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc.NewClient(opts ...otlptracegrpc.Option) Client func New(ctx context.Context, client Client) (*Exporter, error) func NewUnstarted(client Client) *Exporter
Exporter exports trace data in the OTLP wire format. ExportSpans exports a batch of spans. MarshalLog is the marshaling function used by the logging system to represent this Exporter. Shutdown flushes all exports and closes all connections to the receiving endpoint. Start establishes a connection to the receiving endpoint. *Exporter : go.opentelemetry.io/otel/sdk/trace.SpanExporter *Exporter : github.com/go-logr/logr.Marshaler func New(ctx context.Context, client Client) (*Exporter, error) func NewUnstarted(client Client) *Exporter func go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc.New(ctx context.Context, opts ...otlptracegrpc.Option) (*Exporter, error) func go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc.NewUnstarted(opts ...otlptracegrpc.Option) *Exporter
Package-Level Functions (total 3)
New constructs a new Exporter and starts it.
NewUnstarted constructs a new Exporter and does not start it.
Version is the current release version of the OpenTelemetry OTLP trace exporter in use.