Skip to content

ref(performance): Replace service entry span terminology with segment span and transaction#108355

Merged
mjq merged 2 commits intomasterfrom
mjq/2026-02-17/no-more-service-root-span
Feb 17, 2026
Merged

ref(performance): Replace service entry span terminology with segment span and transaction#108355
mjq merged 2 commits intomasterfrom
mjq/2026-02-17/no-more-service-root-span

Conversation

@mjq
Copy link
Member

@mjq mjq commented Feb 17, 2026

Summary

This PR refactors terminology across the performance monitoring UI, replacing "service entry span" with "segment span" in code and "transaction" in user-facing strings.

The UI might also eventually start calling these things segments or segment spans too, but that will be a global change if done and not just in this new EAP version of the transaction summary.

Changes

Terminology Updates:

  • Code identifiers: ServiceEntrySpansSegmentSpans
  • TypeScript types: ServiceEntrySpansRowSegmentSpansRow
  • User-facing UI: "Service Entry Spans" → "Transactions"

File Renames:

  • serviceEntrySpansTable.tsxsegmentSpansTable.tsx
  • useServiceEntrySpansQuery.tsxuseSegmentSpansQuery.tsx

Simplifications:

  • Removed shouldUseOTelFriendlyUI parameter and conditional logic
  • Simplified breadcrumb and empty state messages to always use "transaction"
  • Cleaned up unused imports and parameters

Related

Backend referrer changes: #108358

… span and transaction

Removes all references to "service entry span" from the codebase:
- In code: renamed to "segment span" (types, variables, functions, API referrers)
- In UI: renamed to "transaction" (user-facing labels and text)
- Renamed files: serviceEntrySpansTable.tsx -> segmentSpansTable.tsx, useServiceEntrySpansQuery.tsx -> useSegmentSpansQuery.tsx
- Updated API referrer strings: service-entry-spans -> segment-spans
- Simplified conditional logic that became redundant after unifying terminology

Co-authored-by: Claude (Anthropic) <claude@anthropic.com>
@mjq mjq requested a review from a team as a code owner February 17, 2026 17:21
@mjq mjq marked this pull request as draft February 17, 2026 17:21
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Feb 17, 2026
@github-actions
Copy link
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

Backend changes for referrer renaming will be handled in a separate PR.

Co-authored-by: Claude <noreply@anthropic.com>
@mjq
Copy link
Member Author

mjq commented Feb 17, 2026

Updated to move BE changes to their own PR.

@mjq mjq marked this pull request as ready for review February 17, 2026 17:31
@mjq mjq merged commit b7f0ffc into master Feb 17, 2026
62 checks passed
@mjq mjq deleted the mjq/2026-02-17/no-more-service-root-span branch February 17, 2026 18:51
mjq added a commit that referenced this pull request Feb 17, 2026
## Summary

Renames Snuba referrer constants from "service entry spans" to "segment
spans" to align with updated product terminology.

This is a backend-only change that updates the referrer constant names
used in Snuba queries. The frontend changes are in a separate PR.

## Changes

- `API_INSIGHTS_SERVICE_ENTRY_SPANS_TABLE` →
`API_INSIGHTS_SEGMENT_SPANS_TABLE`
- `API_INSIGHTS_SERVICE_ENTRY_SPANS_TABLE_WITH_CATEGORY` →
`API_INSIGHTS_SEGMENT_SPANS_TABLE_WITH_CATEGORY`
- `API_INSIGHTS_SERVICE_ENTRY_SPANS_TABLE_COUNT` →
`API_INSIGHTS_SEGMENT_SPANS_TABLE_COUNT`

## Related

Frontend changes: #108355

Co-authored-by: Claude <noreply@anthropic.com>
@mjq mjq removed the Scope: Backend Automatically applied to PRs that change backend components label Feb 17, 2026
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
… span and transaction (#108355)

## Summary

This PR refactors terminology across the performance monitoring UI,
replacing "service entry span" with "segment span" in code and
"transaction" in user-facing strings.

The UI might also eventually start calling these things segments or
segment spans too, but that will be a global change if done and not just
in this new EAP version of the transaction summary.

## Changes

**Terminology Updates:**
- Code identifiers: `ServiceEntrySpans` → `SegmentSpans`
- TypeScript types: `ServiceEntrySpansRow` → `SegmentSpansRow`
- User-facing UI: "Service Entry Spans" → "Transactions"

**File Renames:**
- `serviceEntrySpansTable.tsx` → `segmentSpansTable.tsx`
- `useServiceEntrySpansQuery.tsx` → `useSegmentSpansQuery.tsx`

**Simplifications:**
- Removed `shouldUseOTelFriendlyUI` parameter and conditional logic
- Simplified breadcrumb and empty state messages to always use
"transaction"
- Cleaned up unused imports and parameters

## Related

Backend referrer changes: #108358

---------

Co-authored-by: Claude (Anthropic) <claude@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
## Summary

Renames Snuba referrer constants from "service entry spans" to "segment
spans" to align with updated product terminology.

This is a backend-only change that updates the referrer constant names
used in Snuba queries. The frontend changes are in a separate PR.

## Changes

- `API_INSIGHTS_SERVICE_ENTRY_SPANS_TABLE` →
`API_INSIGHTS_SEGMENT_SPANS_TABLE`
- `API_INSIGHTS_SERVICE_ENTRY_SPANS_TABLE_WITH_CATEGORY` →
`API_INSIGHTS_SEGMENT_SPANS_TABLE_WITH_CATEGORY`
- `API_INSIGHTS_SERVICE_ENTRY_SPANS_TABLE_COUNT` →
`API_INSIGHTS_SEGMENT_SPANS_TABLE_COUNT`

## Related

Frontend changes: #108355

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: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants