Skip to content

Commit 2a8d80e

Browse files
author
Adam Tackett
committed
fix applications removing traces redirect
Signed-off-by: Adam Tackett <[email protected]>
1 parent 1b5ab44 commit 2a8d80e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,7 @@ exports[`Traces component renders empty traces page 1`] = `
14741474
items={Array []}
14751475
loading={true}
14761476
mode="data_prepper"
1477+
page="traces"
14771478
refresh={[Function]}
14781479
>
14791480
<EuiPanel>
@@ -3930,6 +3931,7 @@ exports[`Traces component renders jaeger traces page 1`] = `
39303931
jaegerIndicesExist={true}
39313932
loading={true}
39323933
mode="jaeger"
3934+
page="traces"
39333935
refresh={[Function]}
39343936
>
39353937
<EuiPanel>
@@ -6217,6 +6219,7 @@ exports[`Traces component renders traces page 1`] = `
62176219
items={Array []}
62186220
loading={true}
62196221
mode="data_prepper"
6222+
page="traces"
62206223
refresh={[Function]}
62216224
>
62226225
<EuiPanel>

public/components/trace_analytics/components/traces/traces_content.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ export function TracesContent(props: TracesProps) {
290290
openTraceFlyout={openTraceFlyout}
291291
jaegerIndicesExist={jaegerIndicesExist}
292292
dataPrepperIndicesExist={dataPrepperIndicesExist}
293+
page={page}
293294
/>
294295
)}
295296

public/components/trace_analytics/components/traces/traces_table.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ interface TracesTableProps {
4040
openTraceFlyout?: (traceId: string) => void;
4141
jaegerIndicesExist: boolean;
4242
dataPrepperIndicesExist: boolean;
43+
page?: 'traces' | 'app';
4344
}
4445

4546
export function TracesTable(props: TracesTableProps) {
@@ -74,7 +75,9 @@ export function TracesTable(props: TracesTableProps) {
7475
<EuiFlexItem grow={false}>
7576
<EuiLink
7677
data-test-subj="trace-link"
77-
href={appendModeToTraceViewUri(item, getTraceViewUri, traceMode)}
78+
{...(props.page !== 'app' && {
79+
href: appendModeToTraceViewUri(item, getTraceViewUri, traceMode),
80+
})}
7881
{...(openTraceFlyout && { onClick: () => openTraceFlyout(item) })}
7982
>
8083
<EuiText size="s" className="traces-table traces-table-trace-id" title={item}>

0 commit comments

Comments
 (0)