API for obtaining spans and traces not working #5543
Replies: 4 comments 3 replies
-
Hi, I moved this to a discussion because is not a bug. https://github.com/kiali/kiali/blob/master/kiali_api.md is a documentation for developers, The API is not ready to be used from outside the UI. |
Beta Was this translation helpful? Give feedback.
-
I wasn't even aware we still produced that API markdown doc. As Alberto says, keep in mind you are on your own if you attempt to use the Kiali API - it is not meant for outside consumption and can/will change from version to version with no promises of any kind of backward compatibility. |
Beta Was this translation helpful? Give feedback.
-
I see, thanks for the clarification! My idea was to use the API for a scrapper running in the same VM, to automatically obtain some metrics while testing different loads in the application (similar to Locust, but recollecting more information). Do you recommend an alternative on how to handle this? This was going to be run in toy applications in a testing enviroment, not to be used in deployed real-life applications, so I don't really care that much if the API changes across versions. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm running the Online Boutique demo by Google in a minikube service mesh using Istio 1.15 and Kiali. My issue is that I want to use the API to observe spans in the application, but after following the instructions in the kiali_api.md the query returns the following error:
GET 0.0.0.0:20001/kiali/api/namespaces/default/apps/frontend/spans
Status: 503 Service Unavailable
Size: 144 Bytes
Time: 14 ms
{
"error": "Jaeger GRPC client, stream error: rpc error: code = Internal desc = failed when searching for traces: start and end time must be set"
}
I get the same error when trying to get traces with /traces. The issue is that the document doesn't specify how to specificy this start and end times. I tried using resonable guesses like "start" or "startTime", or parameters for other queries like "sinceTime" without success.
Can somebody tell me what I'm missing?
As for my enviroment there is little to say:
Beta Was this translation helpful? Give feedback.
All reactions