opentelemetry-java-instrume.../instrumentation/graphql-java
Lauri Tulmin fffdb0b751
Remove operation name from graphql span name (#13794)
2025-04-30 08:47:18 +03:00
..
graphql-java-12.0 Remove operation name from graphql span name (#13794) 2025-04-30 08:47:18 +03:00
graphql-java-20.0 Remove operation name from graphql span name (#13794) 2025-04-30 08:47:18 +03:00
graphql-java-common Remove operation name from graphql span name (#13794) 2025-04-30 08:47:18 +03:00
README.md Remove operation name from graphql span name (#13794) 2025-04-30 08:47:18 +03:00

README.md

Settings for the GraphQL instrumentation

System property Type Default Description
otel.instrumentation.graphql.query-sanitizer.enabled Boolean true Whether to remove sensitive information from query source that is added as span attribute.
otel.instrumentation.graphql.add-operation-name-to-span-name.enabled Boolean false Whether GraphQL operation name is added to the span name.

WARNING: GraphQL operation name is provided by the client and can have high cardinality. Use only when the server is not exposed to malicious clients.

Settings for the GraphQL 20 instrumentation

System property Type Default Description
otel.instrumentation.graphql.data-fetcher.enabled Boolean false Whether to create spans for data fetchers.
otel.instrumentation.graphql.trivial-data-fetcher.enabled Boolean false Whether to create spans for trivial data fetchers. A trivial data fetcher is one that simply maps data from an object to a field.