Documentation
¶
Overview ¶
Package otlp constructs explicitly configured OTLP trace and metric exporters without reading vendor-specific settings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricExporter ¶
NewMetricExporter constructs a standard OpenTelemetry metric exporter.
func NewTraceExporter ¶
func NewTraceExporter(ctx context.Context, config Config) (traceexport.SpanExporter, error)
NewTraceExporter constructs a standard OpenTelemetry span exporter.
Types ¶
type Compression ¶
type Compression string
Compression selects payload compression.
const ( // CompressionNone disables compression. CompressionNone Compression = "none" // CompressionGZIP enables gzip compression. CompressionGZIP Compression = "gzip" )
type Config ¶
type Config struct {
Protocol Protocol
Endpoint string
URLPath string
Headers map[string]string
Compression Compression
TLS TLSConfig
Retry RetryConfig
Timeout time.Duration
}
Config completely describes an OTLP exporter transport.
Click to show internal directories.
Click to hide internal directories.