Skip to content

Comments

Show oldest stream message timestamp in management UI#15412

Open
the-mikedavis wants to merge 1 commit intomainfrom
md/first-timestamp-ui
Open

Show oldest stream message timestamp in management UI#15412
the-mikedavis wants to merge 1 commit intomainfrom
md/first-timestamp-ui

Conversation

@the-mikedavis
Copy link
Collaborator

This change shows the first_timestamp counter's value as a detail in the management UI as a formatted timestamp. This is somewhat useful for attaching offset listeners by timestamp - you know the oldest timestamp in the stream you can start from.

Example... oldest-message

This change shows the `first_timestamp` counter's value as a detail in
the management UI as a formatted timestamp. This is somewhat useful for
attaching offset listeners by timestamp - you know the oldest timestamp
in the stream you can start from.
@the-mikedavis the-mikedavis self-assigned this Feb 6, 2026
<td><%= fmt_string(queue.segments) %></td>
</tr>
<tr>
<th>Oldest message</th>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Oldest message" ? "First timestamp" ? I'm not attached to the phrasing here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Oldest" is unambiguous while "first" can be interpreted as the head or the tail, so I'd use "oldest" personally.


function fmt_timestamp_mini(ts) {
if (ts == undefined) {
return UNKNOWN_REPR;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes show the dimmed "?" when the page is waiting for data to arrive. Otherwise these fmts would show "NaN-NaN-NaN"

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.

3 participants