Sha256: 43eaeba82cfa23cd6fb079ac31af04591ffca07227b506028f2b3651012c029e

Contents?: true

Size: 519 Bytes

Versions: 5

Compression:

Stored size: 519 Bytes

Contents

# typed: false

require_relative 'ext'

module Datadog
  module Tracing
    module Contrib
      module Propagation
        # Implements sql comment propagation related contracts.
        module SqlComment
          Mode = Struct.new(:mode) do
            def enabled?
              service? || full?
            end

            def service?
              mode == Ext::SERVICE
            end

            def full?
              mode == Ext::FULL
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
ddtrace-1.8.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
ddtrace-1.7.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb