Skip to content

Conversation

@shellmayr
Copy link
Member

Add support for querying span metrics in GetActiveOrgs and GetActiveOrgsVolumes by:

  • Adding use_span_metric parameter (default False) to both classes
  • When enabled, uses SpanMRI.COUNT_PER_ROOT_PROJECT instead of TransactionMRI
  • When enabled, filters by is_segment=true to only count root spans
  • Uses appropriate UseCaseID (SPANS vs TRANSACTIONS) based on the metric type

This allows callers to switch between transaction and span-based metrics for organization volume queries.

Closes TET-1532

…s and GetActiveOrgsVolumes

Add support for querying span metrics in GetActiveOrgs and GetActiveOrgsVolumes by:
- Adding use_span_metric parameter (default False) to both classes
- When enabled, uses SpanMRI.COUNT_PER_ROOT_PROJECT instead of TransactionMRI
- When enabled, filters by is_segment=true to only count root spans
- Uses appropriate UseCaseID (SPANS vs TRANSACTIONS) based on the metric type

This allows callers to switch between transaction and span-based metrics for organization
volume queries.
@linear
Copy link

linear bot commented Jan 26, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 26, 2026
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