Documentation
¶
Overview ¶
Package otel provides a lakta module for OpenTelemetry instrumentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Instance name
Name string `koanf:"-"`
// ServiceName specifies the OpenTelemetry service name.
ServiceName string `koanf:"service_name"`
}
Config represents configuration for OTEL Module
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig returns default configuration
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module manages OpenTelemetry SDK lifecycle.
func (*Module) ConfigPath ¶
ConfigPath returns the koanf path for this module's configuration.
func (*Module) LoadConfig ¶
LoadConfig loads configuration from koanf.
type Option ¶
type Option func(m *Config)
Option configures the Module.
func WithServiceName ¶ added in v0.0.2
WithServiceName sets the OpenTelemetry service name.
Click to show internal directories.
Click to hide internal directories.