Skip to content

feat(hybridcloud): Tag webhook delivery time by provider - #121636

Merged
vaind merged 1 commit into
masterfrom
feat/webhook-delivery-time-provider-tag
Aug 10, 2026
Merged

vaind merged 1 commit into
masterfrom
feat/webhook-delivery-time-provider-tag

Conversation

@vaind

@vaind vaind commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Problem

hybridcloud.deliver_webhooks.delivery_time_ms is tagged with region_sent_to and, for GitHub, github_event_and_action — but not provider. A latency regression confined to one integration is invisible until it is large enough to move the aggregate, and the $provider selector on the Hybrid Cloud Webhook Forwarding dashboard cannot reach the latency charts at all.

#121609 added a provider tag to every delivery, failure, saved and push_trigger.* emission. delivery_time_ms was left out because it is emitted from a different helper; this closes that gap.

Change

_record_delivery_time_metrics now includes provider via the existing _provider_tag helper, so payloads predating the nullable provider column report unknown rather than dropping the tag.

The three existing DeliveryTimeMetricsTest cases already cover the branches that matter, so they gained assertions instead of new tests: a payload with no provider (unknown), a GitHub payload (github), and a non-GitHub payload (stripe).

No Datadog config needed

The metrics in #121609 sit behind an allowlist tag configuration that has to be widened before provider becomes queryable. delivery_time_ms configures tags by exclusion — only infra tags are stripped — so provider is queryable as soon as it is emitted.

The delivery latency charts can be filtered by cell and by GitHub event, but
not by provider, so a latency regression isolated to one integration is only
visible once it moves the aggregate. The other delivery metrics gained a
provider tag in #121609; this closes the gap for delivery_time_ms.

Unlike the metrics in that PR, this one needs no Datadog tag configuration
change: delivery_time_ms indexes tags by exclusion, so provider is queryable
as soon as it is emitted.
@vaind
vaind requested a review from a team as a code owner August 10, 2026 18:41
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 10, 2026
@vaind
vaind merged commit 7139f34 into master Aug 10, 2026
66 checks passed
@vaind
vaind deleted the feat/webhook-delivery-time-provider-tag branch August 10, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants