lib/opentelemetry/instrumentation/graphql/instrumentation.rb in opentelemetry-instrumentation-graphql-0.21.1 vs lib/opentelemetry/instrumentation/graphql/instrumentation.rb in opentelemetry-instrumentation-graphql-0.22.0
- old
+ new
@@ -33,16 +33,22 @@
# and enables the tracing of "authorized" and "authorized_lazy".
#
# The enable_platform_resolve_type key expects a boolean value,
# and enables the tracing of "resolve_type" and "resolve_type_lazy".
#
+ # The legacy_platform_span_names key expects a boolean value,
+ # and controls if platform tracing (field/authorized/resolve_type)
+ # should use the legacy span names (e.g. "MyType.myField") or the
+ # new normalized span names (e.g. "graphql.execute_field").
+ #
# The schemas key expects an array of Schemas, and is used to specify
# which schemas are to be instrumented. If this value is not supplied
# the default behaviour is to instrument all schemas.
option :schemas, default: [], validate: :array
option :enable_platform_field, default: false, validate: :boolean
option :enable_platform_authorized, default: false, validate: :boolean
option :enable_platform_resolve_type, default: false, validate: :boolean
+ option :legacy_platform_span_names, default: false, validate: :boolean
private
def gem_version
Gem::Version.new(::GraphQL::VERSION)