-
public final class GraphQLExtractorExtracts GraphQL-related attributes and errors from network requests and responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGraphQLExtractor.Companion
-
Constructor Summary
Constructors Constructor Description GraphQLExtractor()
-
Method Summary
Modifier and Type Method Description final Map<String, Object>extractGraphQLAttributes(HttpRequestInfo requestInfo)Extracts GraphQL attributes (operation name, type, variables, payload) from the request headers. final StringextractGraphQLErrors(String contentType, String body, InternalLogger internalLogger)Extracts and normalizes GraphQL errors from a JSON response body. -
-
Method Detail
-
extractGraphQLAttributes
final Map<String, Object> extractGraphQLAttributes(HttpRequestInfo requestInfo)
Extracts GraphQL attributes (operation name, type, variables, payload) from the request headers.
- Parameters:
requestInfo- the HTTP request info containing headers
-
extractGraphQLErrors
final String extractGraphQLErrors(String contentType, String body, InternalLogger internalLogger)
Extracts and normalizes GraphQL errors from a JSON response body.
- Parameters:
contentType- the content type of the responsebody- the response body stringinternalLogger- the logger for reporting parsing failures
-
-
-
-