-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear traces/structured logs functionality #6898
base: main
Are you sure you want to change the base?
Conversation
@dotnet-policy-service agree |
Nice. I have some UI thoughts:
|
What if, instead of having a button on every page, there is a single button somewhere, that clears everything; traces, metrics, and structured logs (and console logs at some point)? The button could be located in the top bar next to the settings button, or perhaps inside the settings dialog, if in the header is too prominent. I have done some work on clearing metrics and clearing traces when viewing trace details, but I have not been able to finish it today, I will likely continue work tomorrow |
I made some updates.
The button clears all signal data, and can be extended to clear console logs in the future. |
I'm not sure having it in the top toolbar is an improvement. That area isn't related to the data you see on the page. Also, maybe it is useful to be able to independently clear certain areas of telemetry (and individual resources) rather than a clear all button. Or maybe we have both, i.e. a clear all button in the dashboard settings sidebar and clear buttons on individual telemetry pages. I think the Aspire team is going to need to talk amoungst ourselves about how we want this feature to work. I'm not sure if that will happen this year - people are disappearing for holidays - but I'll make sure there is a decision before Aspire 9.1 ships, and if you're not available to finish the PR off when we have a decision then I'll make whatever changes are required to get it in. I think this is valuable. Something that isn't perfect is better than not shipping. |
For the remove menu, you can use the If you have trouble with the menu, or logic to remove telemetry for one resource, or don't have time to work on this anymore, let me know and I can help with the PR. |
Thanks for the feedback :) I'll get to work on some of the things, I'll let you know if I'll need reinforcements |
I have now implemented a dropdown button on the traces and structured logs pages, with the option to either remove all or only the selected resource(s). For traces, when removing specific resources, it will remove the entire Trace if the root span came from that resource, otherwise it will remove all spans from the resource. I am unsure if it should also remove Span links. I have not tackled Metrics yet, but I will look into it within too long |
I’m away for a week. I’ll take a look when I’m back.
It’s a limitation of the control. Leave it as is and it can be improved in the future. |
Description
Added a button to traces and structured pages, to clear all items.
I find it very useful to be able to easily get a clean slate, as it makes it easier to see what is new items. I have worked with other similar tools in the past, and have had a great use of such buttons.
The placement and icon of the buttons might not be perfect.
I utilized the existing
Clear
functionality in theCircularBuffer
to implement this change.This is similar to this reported issue: #5458, just in different pages.
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):Microsoft Reviewers: Open in CodeFlow