[7.x] [APM] Widen filter used in logs link (#46252) (#46367)

When we link to Logs UI from a trace summary or a transaction flyout, we set the filter parameter to trace.id:"${traceId}". However, we shouldn't make the presence of the trace.id field a hard requirement. Not all users have set up their pipeline to parse the trace id from a log line, but the trace id still might be present in the message.

Widen the filter when linking to trace.id:"${traceId}" OR ${traceId} to accommodate this situation.

Fixes #45346.
This commit is contained in:
Nathan L Smith 2019-09-23 14:29:39 -05:00 committed by GitHub
parent 17235feb0b
commit 13e30097cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,10 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
),
condition: true,
path: `/link-to/logs`,
query: { time, filter: `trace.id:${transaction.trace.id}` }
query: {
time,
filter: `trace.id:"${transaction.trace.id}" OR ${transaction.trace.id}`
}
},
{
icon: 'infraApp',