Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Tracer = otel.Tracer("compose")
Functions ¶
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
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.