jaeger icon indicating copy to clipboard operation
jaeger copied to clipboard

[Bug]: The results filtered through the tag in the `findtrace` page did not match expectations

Open JaredTan95 opened this issue 11 months ago • 2 comments

What happened?

No data is found when filtering traces through the following tag:

http.url=http://sss.xxx.com/v1/user/spaces/1310e65f-16c6-4502-a9ef-15e0ff38e8b2/zone_roles?service_name=ss.sss.xxx.com,

Is it because the value contains the special symbol = at the end? Because passing the following query is normal:

http.url=http://sss.xxx.com/v2/healthchaeck

Steps to reproduce

Filter traces data through the following tags:

http.url=http://sss.xxx.com/v1/user/spaces/1310e65f-16c6-4502-a9ef-15e0ff38e8b2/zone_roles?service_name=ss.sss.xxx.com,

Expected behavior

Filter out the data correctly

Relevant log output

No response

Screenshot

image image

Additional context

No response

Jaeger backend version

1.49.0

SDK

No response

Pipeline

No response

Stogage backend

No response

Operating system

No response

Deployment model

No response

Deployment configs

No response

JaredTan95 avatar Mar 22 '24 08:03 JaredTan95

did you try the advice in the tooltip?

image

(the tooltip has a typo, I put a fix https://github.com/jaegertracing/jaeger-ui/pull/2224)

yurishkuro avatar Mar 23 '24 00:03 yurishkuro

Thank you for your reply. I used ' to wrap = like '=' for query according to what you said. Unfortunately, still failed to filter out the data:

http.url=http://sss.xxx.com/v1/user/spaces/1310e65f-16c6-4502-a9ef-15e0ff38e8b2/zone_roles?service_name'='ss.sss.xxx.com

JaredTan95 avatar Mar 28 '24 10:03 JaredTan95

@JaredTan95 What is the backend you are using?

jkowall avatar Jun 08 '24 20:06 jkowall

@JaredTan95 What is the backend you are using?

  • jaeger 1.49.0
  • jaeger ui 1.33.0
image

JaredTan95 avatar Jun 09 '24 00:06 JaredTan95

quotes around the value: http.url="http://sss.xxx.com/v1/user/spaces/1310e65f-16c6-4502-a9ef-15e0ff38e8b2/zone_roles?service_name=ss.sss.xxx.com"

yurishkuro avatar Jun 09 '24 01:06 yurishkuro

quotes around the value: http.url="http://sss.xxx.com/v1/user/spaces/1310e65f-16c6-4502-a9ef-15e0ff38e8b2/zone_roles?service_name=ss.sss.xxx.com"

Thank you for your reply, but according to your reply, it is still not effective

JaredTan95 avatar Jun 12 '24 00:06 JaredTan95

Works for me in the HotROD demo (with memstore)

image

yurishkuro avatar Jun 12 '24 01:06 yurishkuro

There is also a problem in my environment:

image image image

The version information is:

image

my-git9 avatar Jun 21 '24 06:06 my-git9

Which storage backend?

yurishkuro avatar Jun 21 '24 13:06 yurishkuro

Which storage backend?

ES

scx1st avatar Jun 22 '24 11:06 scx1st

I figured it out. The ES tag queries are considered regex queries. So it's not the = sign that trips the search, it's the ?.

Here is example where the search fails: image

And here's example where it succeeds, after adding an escape character \\ in front of ?

image

This is actually documented in the help popup:

image

yurishkuro avatar Jun 23 '24 02:06 yurishkuro

Thanks a lot, It works~

JaredTan95 avatar Jun 23 '24 08:06 JaredTan95