argoyle cb99bbc1a6
otelsetup / vulnerabilities (pull_request) Successful in 1m39s
otelsetup / test (pull_request) Successful in 2m42s
pre-commit / pre-commit (pull_request) Successful in 5m33s
feat(metrics): add SubscriptionMetrics OTel observer for read-your-writes subscriptions
NewSubscriptionMetrics(subscription) returns a *SubscriptionMetrics whose method
set (Pushed/PushSkipped/Dropped/ChannelFull) satisfies the Observer interface of
gitea.unbound.se/shiny/subscriptions structurally — otelsetup does not import
that library. Services wire it via subscriptions.WithObserver so the
cross-service subscription push path (ADR-0012) reports outcomes as metrics
instead of only the library's skip/drop warn logs.

One Int64Counter `subscription.notifications` labelled by (subscription, outcome)
only — the subscriber key (company id / user email) is deliberately NOT a label
to avoid unbounded cardinality. skip-rate = skipped/(pushed+skipped).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 15:07:35 +02:00
2025-05-29 20:12:20 +02:00
2025-05-29 20:12:20 +02:00
2025-05-29 20:12:20 +02:00
2025-05-29 20:12:20 +02:00
2025-05-29 20:12:20 +02:00
S
Description
No description provided
Readme 462 KiB
v0.4.0 Latest
2026-06-16 13:24:29 +00:00
Languages
Go 100%