Commit Graph
4 Commits
Author SHA1 Message Date
M.ShakhmatovandClaude Opus 5.5 8398e81bc7 Add HTTP and gRPC instrumentation
HTTP server middleware, HTTP client transport and gRPC server/client
interceptors (unary and stream) providing spans, context propagation,
RED metrics with uniform names and access logs. Labels are kept
low-cardinality (route templates, normalized methods).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:39:38 +03:00
M.ShakhmatovandClaude Opus 5.5 c710afb127 Add liveness and readiness health checks
Concurrent checks with per-check timeouts and panic recovery, HTTP
handlers, grpc.health.v1 server, SetReady for graceful shutdown and
the health_check_status metric.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:39:08 +03:00
M.ShakhmatovandClaude Opus 5.5 598ee0536d Add slog logger with trace correlation
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>
2026-11-15 16:39:08 +03:00
M.ShakhmatovandClaude Opus 5.5 022db31878 Extend tracing and metrics
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>
2026-11-15 16:39:08 +03:00