NewLogger builds a JSON/text slog logger with a runtime-adjustable level; TraceHandler adds trace_id and span_id from the context. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tracing: OTLP gRPC/HTTP exporters with TLS and headers, parent-based sampling, W3C TraceContext/Baggage propagation, richer resource attributes, no-export mode without an endpoint, Disabled flag, and Trace/RecordError/TraceID helpers. Metrics: idempotent registration, Sub, GaugeFunc, CounterFunc, RegisterDBStats, OpenMetrics handler with trace exemplars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>