jaeger-ui icon indicating copy to clipboard operation
jaeger-ui copied to clipboard

[Feature]: Colormap log markers by tag

Open SOF3 opened this issue 1 year ago • 7 comments

Requirement

As a Jaeger user workign with large traces with many logs on each span, I want to be able to distinguish various types of logs more easily.

Problem

When I see a large span like this, it is difficult to figure out what is going on at a glance image

Proposal

Add a button "Log colormap" in the trace detail page, probably next to the "Find" menu.

The button opens a dialog in which the user can select a "key", either a dropdown based on all distinct values from .spans[].logs[].keyor a manual input dialog.

When this dialog is closed, all log markers

Open questions

No response

SOF3 avatar Jul 01 '24 04:07 SOF3

I did a simple prototype locally using hsl(hash(tag) % 360, 100%, 40%), the above trace would become like this image

SOF3 avatar Jul 01 '24 06:07 SOF3

Why do you need to distinguish them? What are you trying to glean from the ticks & colors?

yurishkuro avatar Jul 01 '24 14:07 yurishkuro

Let's say the span is a coroutine that polls events from other coroutines, and the tag is the name of the source coroutine or the type of event.

SOF3 avatar Jul 02 '24 01:07 SOF3

Alternatively, the ability to distinguish logs by level (error/info) would be useful too.

SOF3 avatar Jul 02 '24 02:07 SOF3

Are you interested in submitting a PR to implement this?

Regarding the UI experience, I would do it this way:

  • Add a Settings icon ⚙️ at the end of the header (to the right from Archive Trace button)
  • In the popup dialog have an entry 'Color log ticks by: [tag]'
  • Have that setting persisted in local storage so that it's sticky for the user

yurishkuro avatar Jul 03 '24 17:07 yurishkuro

Sure. I am not sure if we want to persist it in local storage though; how would that interact with multiple tabs opened concurrently?

SOF3 avatar Jul 04 '24 03:07 SOF3

Why would that be a problem? If user changes the setting, already opened tabs would not change, but if they are reloaded then they will reflect the setting.

yurishkuro avatar Jul 04 '24 04:07 yurishkuro

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep it open either add a comment or the label do-not-expire.

github-actions[bot] avatar Jul 28 '25 02:07 github-actions[bot]

This issue has been automatically closed due to inactivity.

github-actions[bot] avatar Aug 18 '25 02:08 github-actions[bot]