Skip to content

feat: Add utilities to query transaction data from Sentry - #39

Merged
tustanivsky merged 2 commits into
mainfrom
feat/tracing-api
Feb 17, 2026
Merged

feat: Add utilities to query transaction data from Sentry#39
tustanivsky merged 2 commits into
mainfrom
feat/tracing-api

Conversation

@tustanivsky

@tustanivsky tustanivsky commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

This PR adds new utility functions to the sentry-api-client module that allow querying tracing data (transactions/spans) from Sentry for use in integration tests.

Key changes:

  • Add Get-SentrySpans to sentry-api-client for querying spans (including transactions) via the Sentry Discover API (dataset=spans), supporting filtering by trace ID, query string, time range, and custom fields
  • Add Get-SentryTestTransaction polling helper to Integration.TestUtils that retrieves a full transaction event by trace ID (with tags, child spans, and contexts) using a two-step flow: find the transaction span, then fetch the complete event detail
  • Include unit tests and fixtures for the new Get-SentrySpans function

Related items:

#skip-changelog

Comment thread utils/Integration.TestUtils.psm1

@limbonaut limbonaut left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

README could use an update. Aside from that, LGTM.

@tustanivsky
tustanivsky merged commit 4f10103 into main Feb 17, 2026
14 checks passed
@tustanivsky
tustanivsky deleted the feat/tracing-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