Documentation
¶
Overview ¶
Package otel provides OpenTelemetry integration for Skipper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init bootstraps the OpenTelemetry pipeline using environment variables and provided options. Make sure to call shutdown for proper cleanup if err is nil.
Supported environment variables:
- OTEL_TRACES_EXPORTER
- OTEL_EXPORTER_OTLP_PROTOCOL
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_HEADERS
- OTEL_RESOURCE_ATTRIBUTES
- OTEL_PROPAGATORS
- OTEL_BSP_MAX_QUEUE_SIZE
- OTEL_BSP_MAX_EXPORT_BATCH_SIZE
- OTEL_BSP_SCHEDULE_DELAY
- OTEL_BSP_EXPORT_TIMEOUT
See:
- go.opentelemetry.io/contrib/exporters/autoexport
- go.opentelemetry.io/contrib/propagators/autoprop.
- https://opentelemetry.io/docs/languages/sdk-configuration/general/
- https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
- https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md#environment-variables
Types ¶
type BatchSpanProcessor ¶
type ExporterOtlp ¶
type Options ¶
type Options struct {
// Initialized indicates whether the OpenTelemetry pipeline has been initialized externally.
// If true [Init] returns immediately without doing anything.
Initialized bool `yaml:"-"`
TracesExporter string `yaml:"tracesExporter"`
ExporterOtlp ExporterOtlp `yaml:"exporterOtlp"`
ResourceAttributes map[string]string `yaml:"resourceAttributes"`
Propagators []string `yaml:"propagators"`
BatchSpanProcessor BatchSpanProcessor `yaml:"batchSpanProcessor"`
}
Options configure OpenTelemetry pipeline.
Click to show internal directories.
Click to hide internal directories.