tracing

package
v2.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracer = otel.Tracer("compose")

Functions

func DialInMemory

func DialInMemory(ctx context.Context, addr string) (net.Conn, error)

Types

type MuxExporter

type MuxExporter struct {
	// contains filtered or unexported fields
}

func (MuxExporter) ExportSpans

func (m MuxExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error

func (MuxExporter) Shutdown

func (m MuxExporter) Shutdown(ctx context.Context) error

type OTLPConfig

type OTLPConfig struct {
	Endpoint string
}

OTLPConfig contains the necessary values to initialize an OTLP client manually.

This supports a minimal set of options based on what is necessary for automatic OTEL configuration from Docker context metadata.

func ConfigFromDockerContext

func ConfigFromDockerContext(st store.Store, name string) (OTLPConfig, error)

ConfigFromDockerContext inspects extra metadata included as part of the specified Docker context to try and extract a valid OTLP client configuration.

type ShutdownFunc

type ShutdownFunc func(ctx context.Context) error

ShutdownFunc flushes and stops an OTEL exporter.

func InitProvider

func InitProvider(dockerCli command.Cli) (ShutdownFunc, error)

func InitTracing

func InitTracing(dockerCli command.Cli) (ShutdownFunc, error)

Jump to

Keyboard shortcuts

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