mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-24 03:47:19 +02:00
21 lines
604 B
Go
21 lines
604 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package otlptracehttp // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.opentelemetry.io/otel/exporters/otlp/otlptrace"
|
|
)
|
|
|
|
// New constructs a new Exporter and starts it.
|
|
func New(ctx context.Context, opts ...Option) (*otlptrace.Exporter, error) {
|
|
return otlptrace.New(ctx, NewClient(opts...))
|
|
}
|
|
|
|
// NewUnstarted constructs a new Exporter and does not start it.
|
|
func NewUnstarted(opts ...Option) *otlptrace.Exporter {
|
|
return otlptrace.NewUnstarted(NewClient(opts...))
|
|
}
|