Sha256: e105ea89d1f04c80329b3652f941573153494ced847a4ee3d17487004d31e6c6
Contents?: true
Size: 585 Bytes
Versions: 7
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Datadog module Tracing module Contrib module GraphQL # Provides instrumentation for `graphql` through with GraphQL's trace module TracePatcher module_function def patch!(schemas) if schemas.empty? ::GraphQL::Schema.trace_with(::GraphQL::Tracing::DataDogTrace) else schemas.each do |schema| schema.trace_with(::GraphQL::Tracing::DataDogTrace) end end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems