Sha256: 857033eab394e7f89748f465dbaf2e86bddee4030127f144f43a213f72f6f0d5
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module Datadog module Tracing module Contrib module GraphQL # Provides instrumentation for `graphql` through the GraphQL's tracing with methods defined in UnifiedTrace module UnifiedTracePatcher module_function def patch!(schemas, options) require_relative 'unified_trace' if schemas.empty? ::GraphQL::Schema.trace_with(UnifiedTrace, **options) else schemas.each do |schema| schema.trace_with(UnifiedTrace, **options) end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog-2.2.0 | lib/datadog/tracing/contrib/graphql/unified_trace_patcher.rb |