Skip to content

feat(test): add assert_sentry_metric/2 assertion helper#1042

Merged
solnic merged 1 commit intomasterfrom
feat/assert-sentry-metric
Apr 22, 2026
Merged

feat(test): add assert_sentry_metric/2 assertion helper#1042
solnic merged 1 commit intomasterfrom
feat/assert-sentry-metric

Conversation

@solnic
Copy link
Copy Markdown
Collaborator

@solnic solnic commented Apr 21, 2026

Add a dedicated assert_sentry_metric/2 helper that mirrors assert_sentry_log/3 for metrics. Uses find semantics so tests succeed even when multiple metrics are emitted together (a common pattern), and returns unmatched metrics to an inbox for subsequent assertions in the same test.

Add a dedicated assert_sentry_metric/2 helper that mirrors assert_sentry_log/3
for metrics. Uses find semantics so tests succeed even when multiple metrics
are emitted together (a common pattern), and returns unmatched metrics to an
inbox for subsequent assertions in the same test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@solnic solnic force-pushed the feat/assert-sentry-metric branch from 9300e43 to 59ff1c4 Compare April 21, 2026 14:19
@solnic solnic marked this pull request as ready for review April 21, 2026 14:21
@dingsdax dingsdax self-requested a review April 22, 2026 07:14
@solnic solnic merged commit a213185 into master Apr 22, 2026
11 checks passed
@solnic solnic deleted the feat/assert-sentry-metric branch April 22, 2026 07:17
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.

2 participants