Skip to content

Commit

Permalink
Performance fix for 'cardinality' telemetry task
Browse files Browse the repository at this point in the history
  • Loading branch information
basepi committed Oct 26, 2022
1 parent a022ca4 commit b35a55f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,9 @@ export const tasks: TelemetryTask[] = [
},
{
name: 'cardinality',
executor: async ({ search }) => {
executor: async ({ indices, search }) => {
const allAgentsCardinalityResponse = await search({
index: [indices.transaction],
body: {
size: 0,
timeout,
Expand All @@ -1058,6 +1059,7 @@ export const tasks: TelemetryTask[] = [
});

const rumAgentCardinalityResponse = await search({
index: [indices.transaction],
body: {
size: 0,
timeout,
Expand Down

0 comments on commit b35a55f

Please sign in to comment.