Skip to content

Get stream offset samples#206

Open
MarcialRosales wants to merge 6 commits intomainfrom
stream_offset_landmarks
Open

Get stream offset samples#206
MarcialRosales wants to merge 6 commits intomainfrom
stream_offset_landmarks

Conversation

@MarcialRosales
Copy link
Contributor

@MarcialRosales MarcialRosales commented Jan 28, 2026

Adds stream_offset_landmarks/1 function to the osiris_log module, which scans the log index and returns first, last, and percentile landmarks (25%, 50%, 75%) as {offset(), timestamp()}.
Used by the stream browser to render an offset bar with offset and timestamp at each landmark. The user can attach to a stream by dragging the control in the bar to the offsets they wish. Having landmarks helps the user jump to a specific offset or timestamp.

Maybe the function can be more generic and accept other kinds of percentiles and not just 25, 50 and 75.

@MarcialRosales MarcialRosales self-assigned this Jan 28, 2026
@MarcialRosales MarcialRosales force-pushed the stream_offset_landmarks branch from f73a0d6 to 9fa9c3f Compare February 11, 2026 09:21
@MarcialRosales MarcialRosales marked this pull request as ready for review February 11, 2026 10:27
@MarcialRosales MarcialRosales force-pushed the stream_offset_landmarks branch from 16a9737 to 56d9665 Compare March 5, 2026 15:38
@MarcialRosales MarcialRosales requested a review from kjnilsson March 5, 2026 15:40
@MarcialRosales MarcialRosales changed the title Stream offset landmarks Get stream offset landmarks Mar 5, 2026
- Reuse existing scaning functions
- Specify -via argments- the exact offset percentiles
(between 0.0 and 1.0).
- Use samples rather than landmarks
@MarcialRosales MarcialRosales changed the title Get stream offset landmarks Get stream offset samples Mar 6, 2026
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.

1 participant