Skip to content

Record segment names on replay events #5758

Description

@sentry-junior

Add segment names observed during span streaming to each Android replay event so Flutter can correlate named segments with usable replays.

  • Add segment_names (List<String>) to SentryReplayEvent, including JSON serialization/deserialization, equality, API dumps, and tests.
  • Extend ReplayController / replay integration with a segment-details registration API accepting a trace ID and segment name.
  • Deduplicate and cap both collections at 100 values per replay segment, then clear them together after segment creation.
  • Populate trace_ids and segment_names on the same replay event.
  • Add capture-strategy and serialization tests covering deduplication, limits, disabled replay, and segment rollover.

References: getsentry/sentry-dart#3865, getsentry/sentry-javascript#21851, DART-431.

Requested by Gino Buenaflor via Junior.

--

View Junior Session in Sentry

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions