package tracing
import "github.com/docker/compose/v2/internal/tracing"
Index ¶
- Variables
- func DialInMemory(ctx context.Context, addr string) (net.Conn, error)
- type MuxExporter
- func (m MuxExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error
- func (m MuxExporter) Shutdown(ctx context.Context) error
- type OTLPConfig
- type ShutdownFunc
Variables ¶
Functions ¶
func DialInMemory ¶
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 ¶
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)
Source Files ¶
conn_unix.go docker_context.go errors.go mux.go tracing.go
- Version
- v2.20.1
- Published
- Jul 18, 2023
- Platform
- js/wasm
- Imports
- 26 packages
- Last checked
- 1 hour ago –
Tools for package owners.