otel

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL