diff --git a/auto_sync_commit_metadata.json b/auto_sync_commit_metadata.json index 41e10fdb9..da39f63bb 100644 --- a/auto_sync_commit_metadata.json +++ b/auto_sync_commit_metadata.json @@ -1,4 +1,4 @@ { - "last_github_commit": "2c75e646d62a2e40559c8080d4aaab526fbae514", - "last_gitfarm_commit": "96d16375441c30825a6bb29918f7e7c9c657d8e7" + "last_github_commit": "b0037cd70d8561c93bb642708229737f51dd818b", + "last_gitfarm_commit": "7916bfd1b7d173297d03b5cac7fa46e3c4eadf5b" } \ No newline at end of file diff --git a/public/components/trace_analytics/components/services/service_view.tsx b/public/components/trace_analytics/components/services/service_view.tsx index db4c0702b..0121af258 100644 --- a/public/components/trace_analytics/components/services/service_view.tsx +++ b/public/components/trace_analytics/components/services/service_view.tsx @@ -47,7 +47,13 @@ export function ServiceView(props: ServiceViewProps) { const [redirect, setRedirect] = useState(false); const refresh = () => { - const DSL = filtersToDsl(mode, props.filters, props.query, processTimeStamp(props.startTime, mode), processTimeStamp(props.endTime, mode)); + const DSL = filtersToDsl( + mode, + props.filters, + props.query, + processTimeStamp(props.startTime, mode), + processTimeStamp(props.endTime, mode) + ); handleServiceViewRequest(props.serviceName, props.http, DSL, setFields, mode); if (mode === 'data_prepper') { handleServiceMapRequest(props.http, DSL, mode, setServiceMap, props.serviceName); @@ -74,7 +80,7 @@ export function ServiceView(props: ServiceViewProps) { useEffect(() => { if (!redirect) refresh(); - }, [props.startTime, props.endTime, props.serviceName]); + }, [props.startTime, props.endTime, props.serviceName, props.mode]); const renderTitle = ( serviceName: string, @@ -113,7 +119,7 @@ export function ServiceView(props: ServiceViewProps) { {props.serviceName || '-'} - { mode === 'data_prepper' ? + {mode === 'data_prepper' ? ( Number of connected services @@ -121,9 +127,11 @@ export function ServiceView(props: ServiceViewProps) { ? fields.number_of_connected_services : 0} - : - } - { mode === 'data_prepper' ? + + ) : ( + + )} + {mode === 'data_prepper' ? ( Connected services @@ -139,8 +147,10 @@ export function ServiceView(props: ServiceViewProps) { }) : '-'} - : - } + + ) : ( + + )} @@ -234,17 +244,23 @@ export function ServiceView(props: ServiceViewProps) { }; useEffect(() => { - const spanDSL = filtersToDsl(mode, props.filters, props.query, processTimeStamp(props.startTime, mode), processTimeStamp(props.endTime, mode)); + const spanDSL = filtersToDsl( + mode, + props.filters, + props.query, + processTimeStamp(props.startTime, mode), + processTimeStamp(props.endTime, mode) + ); if (mode === 'data_prepper') { spanDSL.query.bool.must.push({ term: { - "serviceName": props.serviceName, + serviceName: props.serviceName, }, }); } else if (mode === 'jaeger') { spanDSL.query.bool.must.push({ term: { - "process.serviceName": props.serviceName, + 'process.serviceName': props.serviceName, }, }); } @@ -325,15 +341,17 @@ export function ServiceView(props: ServiceViewProps) { {overview} - { mode === 'data_prepper' ? + {mode === 'data_prepper' ? ( :
- } + /> + ) : ( +
+ )} diff --git a/public/components/trace_analytics/components/traces/trace_view.tsx b/public/components/trace_analytics/components/traces/trace_view.tsx index fe0877e0d..46fd00325 100644 --- a/public/components/trace_analytics/components/traces/trace_view.tsx +++ b/public/components/trace_analytics/components/traces/trace_view.tsx @@ -85,14 +85,16 @@ export function TraceView(props: TraceViewProps) { )} - { mode === 'data_prepper' ? ( + {mode === 'data_prepper' ? ( Trace group name {fields.trace_group || '-'} - ) : (
) - } + + ) : ( +
+ )} @@ -150,10 +152,23 @@ export function TraceView(props: TraceViewProps) { >('latency'); const refresh = async () => { - const DSL = filtersToDsl(mode, [], '', processTimeStamp('now', mode), processTimeStamp('now', mode), page); + const DSL = filtersToDsl( + mode, + [], + '', + processTimeStamp('now', mode), + processTimeStamp('now', mode), + page + ); handleTraceViewRequest(props.traceId, props.http, fields, setFields, mode); handlePayloadRequest(props.traceId, props.http, payloadData, setPayloadData, mode); - handleServicesPieChartRequest(props.traceId, props.http, setServiceBreakdownData, setColorMap, mode); + handleServicesPieChartRequest( + props.traceId, + props.http, + setServiceBreakdownData, + setColorMap, + mode + ); handleServiceMapRequest(props.http, DSL, mode, setServiceMap); }; @@ -206,7 +221,7 @@ export function TraceView(props: TraceViewProps) { }, ]); refresh(); - }, []); + }, [props.mode]); return ( <> @@ -250,15 +265,17 @@ export function TraceView(props: TraceViewProps) { ) : null} - { mode === 'data_prepper' ? + {mode === 'data_prepper' ? ( : (
) - } + /> + ) : ( +
+ )}