Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TracerProvider ¶ added in v0.0.2
type TracerProvider struct { embedded.TracerProvider // contains filtered or unexported fields }
TracerProvider is a wrapper around the GRPC OpenTelemetry TracerProvider.
func Init ¶
func Init( ctx context.Context, otelCollectorEndpoint string, serviceName string, ) (*TracerProvider, error)
Init initializes the OpenTelemetry SDK with the OTLP exporter.
func (*TracerProvider) Close ¶ added in v0.0.2
func (t *TracerProvider) Close() error
Close closes the TracerProvider and the GRPC Conn.
func (*TracerProvider) Tracer ¶ added in v0.0.2
func (t *TracerProvider) Tracer(name string, options ...trace.TracerOption) trace.Tracer
Tracer returns a named tracer.
Click to show internal directories.
Click to hide internal directories.