Skip to content

Conversation

@phacops
Copy link
Contributor

@phacops phacops commented Jan 24, 2026

Summary

  • Remove the is_eap parameter from store_span, store_spans, store_segment, store_indexed_span, and create_event test utilities
  • The non-EAP codepath is no longer needed as all span storage now uses the EAP endpoint
  • This simplifies the test utilities by removing the conditional logic and always using span_to_trace_item() to convert spans before posting to the EAP_ITEMS_INSERT_ENDPOINT

Test plan

  • All existing tests should pass since they were already using is_eap=True

Remove the is_eap parameter from store_span, store_spans, store_segment,
store_indexed_span, and create_event test utilities. The non-EAP codepath
is no longer needed as all span storage now uses the EAP endpoint.

This simplifies the test utilities by removing the conditional logic and
always using span_to_trace_item() to convert spans before posting to the
EAP_ITEMS_INSERT_ENDPOINT.

Co-Authored-By: Claude <noreply@anthropic.com>
@phacops phacops requested review from a team as code owners January 24, 2026 16:54
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 24, 2026
@phacops
Copy link
Contributor Author

phacops commented Jan 24, 2026

This will be needed before we push this https://github.com/getsentry/getsentry/pull/19203.

@phacops phacops enabled auto-merge (squash) January 27, 2026 00:14
@phacops phacops merged commit 939ed9b into master Jan 27, 2026
66 checks passed
@phacops phacops deleted the ref/remove-is-eap-codepath branch January 27, 2026 19:53
priscilawebdev pushed a commit that referenced this pull request Jan 28, 2026
## Summary
- Remove the `is_eap` parameter from `store_span`, `store_spans`,
`store_segment`, `store_indexed_span`, and `create_event` test utilities
- The non-EAP codepath is no longer needed as all span storage now uses
the EAP endpoint
- This simplifies the test utilities by removing the conditional logic
and always using `span_to_trace_item()` to convert spans before posting
to the `EAP_ITEMS_INSERT_ENDPOINT`

## Test plan
- All existing tests should pass since they were already using
`is_eap=True`

Co-authored-by: Claude <noreply@anthropic.com>
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.

5 participants