Commit Graph
6 Commits
Author SHA1 Message Date
M.ShakhmatovandClaude Opus 5.5 3acf207727 Add Grafana dashboard and Prometheus alerts
Shared monitoring for any obsx service, built on the uniform built-in
metric names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:18:43 +03:00
M.ShakhmatovandClaude Opus 5.5 f7c8186040 Add Observer as a single entry point
obsx.New wires logger, tracer provider, metrics, health checks and the
admin server (/metrics, /healthz, /readyz, /buildinfo, /loglevel,
pprof). Adds Track for arbitrary operations, Config.WithEnv overrides,
godoc examples and a runnable example service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:18:43 +03:00
M.ShakhmatovandClaude Opus 5.5 e8c211e93f 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-10-30 00:18:43 +03:00
M.ShakhmatovandClaude Opus 5.5 5cd2375d37 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-10-30 00:18:43 +03:00
M.ShakhmatovandClaude Opus 5.5 9ef343de45 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-10-30 00:18:43 +03:00
M.ShakhmatovandClaude Opus 5.5 9a8ebe987b 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-10-30 00:18:43 +03:00