Skip to content

Commit

Permalink
[APM] Remove error.id in getErrorGroupMainStatistics query as it'…
Browse files Browse the repository at this point in the history
…s not used (elastic#210613)

## Summary

Closes elastic#210610

This PR removes `error.id` field from being queried at
`getErrorGroupMainStatistics`, as it was not being used, as it was
required. If we didn't have this field, the endpoint call would crash.

(cherry picked from commit 46cd29e)
  • Loading branch information
rmyz committed Feb 12, 2025
1 parent 13dddd9 commit c9bcd8d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
ERROR_EXC_TYPE,
ERROR_GROUP_ID,
ERROR_GROUP_NAME,
ERROR_ID,
ERROR_LOG_MESSAGE,
SERVICE_NAME,
TRACE_ID,
Expand Down Expand Up @@ -97,7 +96,7 @@ export async function getErrorGroupMainStatistics({
]
: [];

const requiredFields = asMutableArray([AT_TIMESTAMP, ERROR_GROUP_ID, ERROR_ID] as const);
const requiredFields = asMutableArray([AT_TIMESTAMP, ERROR_GROUP_ID] as const);

const optionalFields = asMutableArray([
TRACE_ID,
Expand Down

0 comments on commit c9bcd8d

Please sign in to comment.