Sha256: e9894add4d31cc103c1097d5a0e1251a98105fde0742b006baddbb837c3977c7

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb