logwarden v0.13.0¶
Status: Planned, conditional. Starts only if the v0.12.0 trial says go, and its scope is cut to what the trial found useful. If the trial says no-go, this version is dropped.
Outcome: metrics checked in the same everyday workflow as logs. A team that already runs logwarden on its logs in CI or on a schedule adds metrics with one option. The findings appear in the same merge request, report and dashboard, and existing metrics debt doesn't block anyone, thanks to the baseline.
What's new¶
--signal metricsis stable. Rule ids,--jsonkeys and exit codes for metrics become a public interface, like those for logs.- More inputs. OTLP JSON metrics, and
logwarden capturereceives/v1/metrics(protobuf and JSON) next to/v1/logs, socapture -- pytestchecks the metrics a test run emits. - More rules.
adr_metric_name: units or_total/_countin an OTel name; a custom name close to a semconv metric names the semconv metric.adr_missing_requiredalso checks the resource of every metric (service.name,service.version,deployment.environment.name).adr_metric_required: a metric listed in[metrics] requiredis missing from the run.- Per-metric series budgets in
[metrics] series_budget. - Domain metrics declared in
logwarden-fields.yaml(ametrics:section), with instrument, unit and labels, and checked like semconv metrics. - Same workflow as logs.
--baseline,--compare,--snapshot,--html,--sarifand--codequalityfor metrics. The GitLab template getsLOGWARDEN_SIGNAL, and the scheduled job from v0.9.0 can check saved/metricsoutput too. The Action gets asignalinput; MCPcheck_logsacceptssignal: "metrics";get_standardcan return the metrics standard. - Rule messages for
adr_sensitive_datasay "telemetry" instead of "logs".
Breaking changes¶
None. Ids, --json keys and exit codes for logs don't change. Metrics rules from v0.12.0 may
be renamed once here, while they're still experimental, and the notes will list any rename.
Verification¶
| # | Claim | How it will be checked | Result |
|---|---|---|---|
| 1 | Trial says go | The v0.12.0 notes record go; this scope was cut to match its findings, and these notes were updated first | ⏳ |
| 2 | Inputs | A Prometheus text fixture and an OTLP JSON fixture of the same metrics give the same findings; capture -- python emit.py with the OTel SDK over OTLP/HTTP protobuf and JSON writes the metrics, and the check gives the v0.12.0 fixture's findings |
⏳ |
| 3 | New rules | adr_metric_name, resource adr_missing_required, adr_metric_required and per-metric budgets: failing and passing cases each |
⏳ |
| 4 | Domain metrics | A metrics: entry makes orders.created pass; a wrong unit or instrument on it fails |
⏳ |
| 5 | Same workflow | --baseline, --compare, --sarif (schema-valid), --codequality, --html work on the fixture; the GitLab template with LOGWARDEN_SIGNAL=metrics in the local GitLab shows metrics findings in the merge request; the Action with signal: metrics; MCP check_logs with signal: "metrics" |
⏳ |
| 6 | Trial services | The worth fixing findings from the v0.12.0 trial still appear (unless fixed), and the v0.12.0 not worth fixing ones are gone or have a documented reason |
⏳ |
| 7 | Docs, CI, release | Metrics standard rules [checked]; docs/rules.md, docs/integration.md, README, skill, AGENTS.md, roadmap; CI on Linux, macOS and Windows; dry run to TestPyPI; after the tag, from PyPI and the image |
⏳ |