-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #786 from DataDog/carlosnogueira/RUM-1206/add-tele…
…metry-to-apollo-client [RUM-1206] Add telemetry to apollo client
- Loading branch information
Showing
5 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const enum ErrorCode { | ||
GQL_VARIABLE_RETRIEVAL_ERROR = 'GQL_VARIABLE_RETRIEVAL_ERROR', | ||
GQL_OPERATION_TYPE_ERROR = 'GQL_OPERATION_TYPE_ERROR' | ||
} | ||
|
||
export const errorMessages: Record<ErrorCode, string> = { | ||
[ErrorCode.GQL_VARIABLE_RETRIEVAL_ERROR]: | ||
'Failed to retrieve GraphQL variables from operation', | ||
[ErrorCode.GQL_OPERATION_TYPE_ERROR]: | ||
'Failed to determine GraphQL operation type' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters