Skip to content

fix(metrics): map connection_id to webhook_id for --dimensions#224

Merged
leggetter merged 1 commit intomainfrom
fix/metrics-dimension-connection-id
Feb 27, 2026
Merged

fix(metrics): map connection_id to webhook_id for --dimensions#224
leggetter merged 1 commit intomainfrom
fix/metrics-dimension-connection-id

Conversation

@leggetter
Copy link
Collaborator

Summary

The API expects dimension name webhook_id (historical); agents and users often pass connection_id. This caused 422 when using --dimensions connection_id.

Changes

  • In metricsParamsFromFlags, map connection_id and connection-id to webhook_id before appending to dimensions so hookdeck gateway metrics events ... --dimensions connection_id works without 422.
  • Improve --dimensions help with example dimensions (connection_id, source_id, destination_id, status).

Testing

  • go test ./pkg/... passes.

Made with Cursor

…ensions

The API expects dimension name webhook_id (historical); agents and users
often pass connection_id. Map connection_id and connection-id to webhook_id
so 'hookdeck gateway metrics events ... --dimensions connection_id' works
without 422. Also improve --dimensions help with example dimensions.

Made-with: Cursor
@leggetter leggetter merged commit 9e90e96 into main Feb 27, 2026
7 of 8 checks passed
@leggetter leggetter deleted the fix/metrics-dimension-connection-id branch February 27, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant