Skip to content

feat: Add utilities to query metrics from Sentry#38

Merged
tustanivsky merged 3 commits intomainfrom
feat/metrics-api
Feb 12, 2026
Merged

feat: Add utilities to query metrics from Sentry#38
tustanivsky merged 3 commits intomainfrom
feat/metrics-api

Conversation

@tustanivsky
Copy link
Copy Markdown
Collaborator

@tustanivsky tustanivsky commented Feb 11, 2026

This PR adds new utility functions to the sentry-api-client module that allow querying metrics from Sentry for use in integration tests.

Key changes:

  • Add Get-SentryMetrics to query metrics via the Sentry Discover API (tracemetrics dataset), supporting query, time range, pagination, and custom fields
  • Add Get-SentryMetricsByAttribute convenience wrapper for filtering metrics by name and attribute key/value pairs
  • Add Get-SentryTestMetric integration test utility with polling/retry support for verifying metrics in CI

Related to:

#skip-changelog

@tustanivsky tustanivsky marked this pull request as ready for review February 11, 2026 19:00
Copy link
Copy Markdown
Collaborator

@limbonaut limbonaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tustanivsky tustanivsky merged commit 0f3a63a into main Feb 12, 2026
13 checks passed
@tustanivsky tustanivsky deleted the feat/metrics-api branch March 4, 2026 08:20
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