go/observability

Free catalog · v0.0.10

Reviews Go logs, traces, metrics, context propagation, and telemetry lifecycle defects.

Checks

RuleSeverityScans for
go-obs.logging.normal-cancellation-as-errorMediumA helper classifies context cancellation as normal shutdown but a direct caller logs the returned error at error level
go-obs.metrics.duration-unit-mismatchHighA Prometheus histogram or summary declares a duration unit in its metric name but records a different explicit Go duration unit
go-obs.metrics.failure-without-denominatorMediumA Prometheus failure/error counter has no comparable same-subject event total
go-obs.metrics.high-cardinalityHighUnbounded user-controlled values used as Prometheus label values
go-obs.metrics.register-in-requestMediumMetric registration inside a request handler or loop
go-obs.panic.recover-swallowHighrecover() discards the panic without logging or re-reporting it
go-obs.slog.args-mismatchMediumslog call with mismatched key/value pairs or non-string key
go-obs.trace.background-contextMediumSpan or downstream call started from context.Background() inside a request path that has a real context
go-obs.trace.span-not-endedHighSpan started but not ended on all return paths

More from the registry