Skip to content

Commit

Permalink
[APM] Widen filter used in logs link (elastic#46252)
Browse files Browse the repository at this point in the history
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 elastic#45346.
  • Loading branch information
smith authored Sep 23, 2019
1 parent cbbe241 commit d16dfa8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d16dfa8

Please sign in to comment.