edx / edx-arch-experiments

A plugin to include applications under development by the architecture team at edx
GNU Affero General Public License v3.0
0 stars 3 forks source link

[APM] Can't do complex trace search with grouping #655

Closed timmc-edx closed 1 month ago

timmc-edx commented 1 month ago

When we search for traces based on multiple span filters and try to select a grouping-based visualization, we get "failed to fetch data". "List and Map" works but all of the other visualization modes fail. This is accompanied by a 400 Bad Request in the network tab.

In the given example, this makes it hard to get a list of resources where an error is raised in one span but handled or suppressed before reaching the root span—something that would be useful in debugging another ticket relating to error tracking.

Screenshot of this trace query failing:

Image

Private Datadog ticket: https://help.datadoghq.com/hc/en-us/requests/1707206

timmc-edx commented 1 month ago

From conversation with support: I suspect that the "count of" field had defaulted to something I didn't want and I entered "*", which would be correct in some other places but not here. (The correct choice was "all spans" or something else from the dropdown.) And while entering an alphabetic nonsense string there ("asdf") still shows results, entering anything with an asterisk in it causes the 400 Bad Request and the failure in the UI.

So there may be a bug here, but it's not an important one for us.