Class FederatedTracingInstrumentation.Options
java.lang.Object
com.apollographql.federation.graphqljava.tracing.FederatedTracingInstrumentation.Options
- Enclosing class:
- FederatedTracingInstrumentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @NotNull FederatedTracingInstrumentation.OptionsbooleanshouldTrace(graphql.ExecutionInput executionInput)
-
Constructor Details
-
Options
public Options(boolean debuggingEnabled, @Nullable @Nullable Predicate<graphql.ExecutionInput> shouldTracePredicate) Configuration options for federated tracing.- Parameters:
debuggingEnabled- Enables debug logging of the generated trace (default: false).shouldTracePredicate- Predicate that controls whether to generate a trace for a given request (default: null). Note that when Apollo Gateway provides an HTTP header with name "apollo-federation-include-trace" and value "ftv1", you must enable tracing for the request, and it is your responsibility to augment yourExecutionInputor its context to contain the information necessary for this predicate to have the above behavior. The default/null behavior is to enable trace generation unless the GraphQLContext map contains "apollo-federation-include-trace" entry with a value other than "ftv1"
-
Options
public Options(boolean debuggingEnabled)
-
-
Method Details
-
newOptions
-
isDebuggingEnabled
public boolean isDebuggingEnabled() -
shouldTrace
public boolean shouldTrace(graphql.ExecutionInput executionInput)
-