Documentation
¶
Overview ¶
Package otel provides OpenTelemetry initialization for tracing, metrics, and logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// ServiceName is the name of the service. Required.
ServiceName string `koanf:"service_name"`
// ServiceVersion is the version of the service. Required.
ServiceVersion string `koanf:"service_version"`
}
Config holds the configuration for OpenTelemetry setup.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config with default values. ServiceName and ServiceVersion are required and must be set by the caller.
Click to show internal directories.
Click to hide internal directories.