Skip to content

Commit

Permalink
[APM] Quote trace id to ensure a word is searched (elastic#69500)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathis Raguin <[email protected]>
  • Loading branch information
Sayrus committed Jun 18, 2020
1 parent 4ce91b3 commit 1257729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Transaction action menu', () => {
key: 'traceLogs',
label: 'Trace logs',
href:
'some-basepath/app/logs/link-to/logs?time=1580986800&filter=trace.id:%22123%22%20OR%20123',
'some-basepath/app/logs/link-to/logs?time=1580986800&filter=trace.id:%22123%22%20OR%20%22123%22',
condition: true,
},
],
Expand Down Expand Up @@ -113,7 +113,7 @@ describe('Transaction action menu', () => {
key: 'traceLogs',
label: 'Trace logs',
href:
'some-basepath/app/logs/link-to/logs?time=1580986800&filter=trace.id:%22123%22%20OR%20123',
'some-basepath/app/logs/link-to/logs?time=1580986800&filter=trace.id:%22123%22%20OR%20%22123%22',
condition: true,
},
],
Expand Down Expand Up @@ -183,7 +183,7 @@ describe('Transaction action menu', () => {
key: 'traceLogs',
label: 'Trace logs',
href:
'some-basepath/app/logs/link-to/logs?time=1580986800&filter=trace.id:%22123%22%20OR%20123',
'some-basepath/app/logs/link-to/logs?time=1580986800&filter=trace.id:%22123%22%20OR%20%22123%22',
condition: true,
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const getSections = ({
path: `/link-to/logs`,
query: {
time,
filter: `trace.id:"${transaction.trace.id}" OR ${transaction.trace.id}`,
filter: `trace.id:"${transaction.trace.id}" OR "${transaction.trace.id}"`,
},
}),
condition: true,
Expand Down

0 comments on commit 1257729

Please sign in to comment.