Open
Description
Currently, you can pass different schemas through the config to register the tracer. However, it's not currently feasible to register the tracer to a specific mode. This feature can be very handy if you aim to have a high-performance mode without any tracing and a separate trace mode for troubleshooting. In GraphQL code, this functionality is achieved by using trace_with
, where you specify both the tracer module and the mode. For example:
::GraphQL::Schema.trace_with(Tracers::GraphQLTrace, mode: :otel_trace_mode)