-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Search traces with non-string tags #2540
Comments
I can look into this if there are no takers. |
@albertteoh All yours. |
Adding some more info. Looks like there was a PR for adding regex tag search for es and I believe that since then we use regex query for every tag we have. This is the PR: #2049. (@annanay25 I saw you sent the PR, WDYT?) The change from match to regex: Maybe we should have something that indicates the tags contain a regex exp. and only if so use the regex query? or should we assume the es mapping for all tags is a string? |
As discussed with @idohalevi offline, it looks like this is not a bug with Jaeger, but the root cause was because a custom index mapping was instead instead of the "vanilla" jaeger-span index definition. This resulted in leaving ES to guess the best data types (dynamic mapping) for the incoming span tags which, in this case was
It also looks quite likely that #2049 was the cause of the issue we're seeing, as the last time a search on the The tradeoff for #2049, IIUC, is that we can't leverage Kibana for visualisations (e.g. line charts) of span data based on aggregations of numeric field types as Kibana will simply not show that field as an option to aggregate on if it's not numeric. @annanay25 is trade-off something you and the community were aware of when creating that PR? |
Ah please ignore, the jaeger-span index definition already defined tags as |
@albertteoh thanks, I'll close the issue |
Describe the bug
When I search for traces with a tag that its value is not a string I get a 500 error. I found that the ES query contains a regex format query. It seems like this type of query can search for string values only and when I try to search for tags that have other values I get an error.
Maybe it's related to #2364 ?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The expected behavior is to get all the traces with the requested tags
Screenshots
Version (please complete the following information):
What troubleshooting steps did you try?
When I change the field mapping from boolean to string the search works as expected
The text was updated successfully, but these errors were encountered: