Versions in this module Expand all Collapse all v0 v0.1.0 Sep 9, 2026 Changes in this version + const ControlPlaneTraceRatio + func Fatal(ctx context.Context, msg string, err error) + func InitLogger() + func InitLoggerWithWriter(w io.Writer) + func InitMetrics(ctx context.Context, serviceName string) (*sdkmetric.MeterProvider, error) + func InitMetricsPushOnly(ctx context.Context, serviceName string, producers ...sdkmetric.Producer) (*sdkmetric.MeterProvider, error) + func InitMetricsPushOnlyVia(ctx context.Context, serviceName string, conn *grpc.ClientConn, ...) (*sdkmetric.MeterProvider, error) + func InitTracing(ctx context.Context, opts TracingOptions) (*sdktrace.TracerProvider, error) + func LogLevel() slog.Leveler + func SetLogLevel(level string) error + func ShutdownProvider(name string, shutdown func(context.Context) error) + func StartMetricsServer(ctx context.Context, opts MetricsServerOptions) + func StartReadinessServer(ctx context.Context, addr string, readiness *Readiness) + type MetricsServerOptions struct + Addr string + EnableHealthz bool + Readiness *Readiness + type Readiness struct + func (r *Readiness) MarkNotReady() + func (r *Readiness) Ready() bool + type TraceSampling struct + func ParentNeverSampling() TraceSampling + func ParentRatioSampling(ratio float64) TraceSampling + func ResolveTraceSampling(ctx context.Context, def TraceSampling) TraceSampling + func (s TraceSampling) RootSamplingPercent() float64 + func (s TraceSampling) Sampler() sdktrace.Sampler + type TracingOptions struct + ExporterConn *grpc.ClientConn + RelayCapable bool + Sampling TraceSampling + ServiceName string