Documentation
¶
Index ¶
Constants ¶
View Source
const OTEL_ORCHESTRASTOR_SERVICE_NAME = "orchestrator"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtelConfig ¶
type OtelConfig struct {
OtelCollectorUrl string `env:"OTEL_COLLECTOR_URL" envDefault:""`
}
type OtelTracingService ¶
type OtelTracingService interface { Init(serviceName string) *sdktrace.TracerProvider Shutdown() }
type OtelTracingServiceImpl ¶
type OtelTracingServiceImpl struct {
// contains filtered or unexported fields
}
func NewOtelTracingServiceImpl ¶
func NewOtelTracingServiceImpl(logger *zap.SugaredLogger) *OtelTracingServiceImpl
func (OtelTracingServiceImpl) Init ¶
func (impl OtelTracingServiceImpl) Init(serviceName string) *sdktrace.TracerProvider
Init configures an OpenTelemetry exporter and trace provider
func (OtelTracingServiceImpl) Shutdown ¶
func (impl OtelTracingServiceImpl) Shutdown()
Click to show internal directories.
Click to hide internal directories.