Skip to content

Commit

Permalink
Revert errors to use source
Browse files Browse the repository at this point in the history
  • Loading branch information
jennypavlova committed Oct 2, 2024
1 parent 7a34150 commit d7d4372
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function getErrorGroupSampleIds({
should: [{ term: { [TRANSACTION_SAMPLED]: true } }], // prefer error samples with related transactions
},
},
fields: [ERROR_ID, 'transaction'],
_source: [ERROR_ID, 'transaction'],
sort: asMutableArray([
{ _score: { order: 'desc' } }, // sort by _score first to ensure that errors with transaction.sampled:true ends up on top
{ '@timestamp': { order: 'desc' } }, // sort by timestamp to get the most recent error
Expand Down

0 comments on commit d7d4372

Please sign in to comment.