dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.94k stars 483 forks source link

Add configurable timestamp sorting #4190

Open bobby-driggs opened 6 months ago

bobby-driggs commented 6 months ago

Hi, Ive been looking into and playing around with the stand alone Aspire Dashboard, and its looking and working great.

My only current gripe is that (at least for the structured logs) they are sorted by timestamps ascending. ( oldest first ). this is a bit of a pain point, as I am constantly having to scroll down to the bottom to see the latest logs, as I am mostly interested in the newest logs first (descending order).

It doesnt seem like any of the columns are sortable on the structed log data grid, and i would love an option to either add sorting to the columns, or at least have a configurable option to have the default sort be newest first.

Thanks!

chinmay-trivedi commented 6 months ago

@bobby-driggs 100% agree. There should be a sorting mechanism to decide user wants Latest logs on top based on Timestamps or not. This is required on "Structured" and "Traces" tabs.

image

Kralizek commented 6 months ago

same goes also for traces :) especially in the inner cycle, it makes sense to have the latest requests on top instead of scrolling to bottom :)

leslierichardson95 commented 2 months ago

@leslierichardson95 add sorting / filtering story tag to this later

ReubenBond commented 1 month ago

As far as I can tell, logs are not explicitly sorted currently, which means logs can currently be displayed out-of-order, even for the same resource. Here is an example. Note the top two and bottom two log timestamps: Image

dansiegel commented 3 weeks ago

Adding a sort would be useful... but I might also suggest adding this as a filter as well. Like I might be crazy and say I want to look at the logs between 5-10 minutes ago... or just want to see the logs for the last 5 minutes