Skip to content
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

Simplify search on specific tags #261

Open
ledor473 opened this issue Oct 2, 2018 · 11 comments
Open

Simplify search on specific tags #261

ledor473 opened this issue Oct 2, 2018 · 11 comments

Comments

@ledor473
Copy link
Member

ledor473 commented Oct 2, 2018

Requirement - what kind of business use case are you trying to solve?

We've identified a few tags that are frequently used as a search criteria in Jaeger and would like to make it simpler to search on it.

Problem - what in Jaeger blocks you from solving the requirement?

Searching by Tags requires the tag name in addition to the value. There's no way to "lock" a specific tag that is widely used

Proposal - what do you suggest to solve the problem or improve the existing situation?

It would be nice if we could provide the Query component with a list of tags that would always be shown. Something like this:
screen shot 2018-10-02 at 10 00 31 am

A future version of this could be based on the selected service with a default for everyone (similar to the adaptive sampling config)

Any open questions to address

N/A

Might be related to #235

@jkowall
Copy link
Contributor

jkowall commented Oct 15, 2021

I think this would create a lot of confusion, you can still search for multiple tags with the current single box which I think is fine. You can also bookmark a URL with a search in it and simply edit after the search is run. I'm going to close this since it doesn't make sense to implement this change, but feel free to re-open this if you disagree.

@jkowall jkowall closed this as completed Oct 15, 2021
@yurishkuro
Copy link
Member

yurishkuro commented Oct 15, 2021

@jkowall there are 5 upvotes, summarily closing may not be the best approach.

I do agree with you that this feels like a very specific feature that will be a maintenance burden without much benefit. In particular, in a large enough installation/organization who decides which tags should be elevated to such special status?

I can see a different version of this that could be more useful - a history-based helper. The top text box will remain the generic multi-tag entry, and below it a new section

You used these tags previously
[tag1] [tag2] [tag3]

where [tagN] are pills with tag names and clicking on appends tagN= back to the single multi-entry box and puts cursor right after it with focus.

@albertteoh
Copy link
Contributor

I like the idea of seeing the history of previously searched tags by the local user.

FWIW, I recall @yoave23 proposed a similar idea of tag autocompletion (for all known tags) which I think would be a useful feature, but I think we came across limitations because some backends weren't able to index by span tags.

@yurishkuro
Copy link
Member

Yes, auto-completion is much harder as it requires backend support. The personal history of tags is pretty trivial to implement.

@yurishkuro yurishkuro reopened this Oct 15, 2021
@jkowall
Copy link
Contributor

jkowall commented Oct 16, 2021

Thanks for re-opening @yurishkuro and the feedback @albertteoh

There are several tickets on autocompletion, do we want to try to implement that on the backend?

Most browsers keep a form history and ranking for auto-complete these days, and we can force this on too (https://www.w3schools.com/tags/att_input_autocomplete.asp). I think that would meet the needs for this feature. If you want to store the history on the backend, how would that work exactly since Jaeger doesn't exactly have user management?

@albertteoh
Copy link
Contributor

how would that work exactly since Jaeger doesn't exactly have user management?

Yeah, exactly, because it would be a non-trivial task to introduce server-side user sessions.

I'd imagine this feature would only keep history for the user during their active session and perhaps persisting this information between sessions via cookies, but I don't know how feasible the latter would be.

@yurishkuro
Copy link
Member

I don't think auto-completion would work here because it would remember the whole query, and I expect queries to differ while often using similar tags.

Browsers have local storage, I was thinking of that rather than cookies or server side.

@yoave23
Copy link
Contributor

yoave23 commented Oct 16, 2021

Yes, auto-completion is much harder as it requires backend support.

Do we have an estimation of how much effort this would take? I guess we'll need to implement it for each supported storage.
From my experience, the tags search is a commonly used feature with much room for improvement in terms of UX/UI.

@jkowall
Copy link
Contributor

jkowall commented Oct 20, 2021

@yoave23 If we do it client side it shouldn't be too much work I would think.

@joe-farro
Copy link

joe-farro commented Oct 20, 2021 via email

@crobertson-conga
Copy link

Currently I'm evaluating Jaeger to understand how we can use it in my organization. It would be excellent for new users to have some things already set up for them when they come in. While a local tag history helps out if you are already using Jaeger, there are some tags that I would like to be able to have the following:

  • Make them well known as a general filter.
  • Potentially populate those tags with a set of well-known values.

Specifically, I'm thinking of Open Telemetry resource parameters and shipping tracing information to a central location for further analysis. I would love to be able to strongly recommend in the UI: deployment.environment (prod, stage, dev, and freeform) and service.namespace (aligned with a static set of product names) as two top-level tags that are recommended to filter upon when searching for traces. I was hoping that we could configure the UI search area with some static additional search tags via JSON...similarly to the menu bar, but ran across this enhancement which sounds very similar to what I was hoping for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants