Conversation
|
64a5929
to
c13d480
Compare
Fixes kiali/kiali#3071 - Make class AppTracesC more generic, allowing app/service/workload input (and rename it: TracesComponent) - TracesFetcher now fetches different endpoints depending on target kind - "JaegerItemC" now receives a "focusElement" instead of app (and is renamed: TraceDetails) - Remove now unused cleanServiceSelector function - Define server endpoints API for fetching service/workload based traces - Add Traces tab to ServiceDetailsPage
c13d480
to
e7fa265
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jaegerTraces: (namespace: string, app: string) => `api/namespaces/${namespace}/apps/${app}/traces`, | ||
appTraces: (namespace: string, app: string) => `api/namespaces/${namespace}/apps/${app}/traces`, | ||
serviceTraces: (namespace: string, svc: string) => `api/namespaces/${namespace}/services/${svc}/traces`, | ||
workloadTraces: (namespace: string, wkd: string) => `api/namespaces/${namespace}/workloads/${wkd}/traces`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not yet in the backend, isn't it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I'm a bit ahead of time for this one ... first i thought i would do both tasks at the same time..
I can remove if you prefer, but anyway, I'll start to work on the workload case right after that one
return newRequest<JaegerResponse>(HTTP_VERBS.GET, urls.serviceTraces(namespace, service), params, {}); | ||
}; | ||
|
||
export const getWorkloadTraces = (namespace: string, workload: string, params: TracingQuery) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is left here, this endpoint is not yet in the backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Frontend code looks ok.
I have a couple of comments in the backend code, but I've tested locally and it seems ok.
Fixes kiali/kiali#3071
Backend PR: kiali/kiali#3169