Sha256: 2f291dfe322ecaea651711d8d4288a36a6f26ac1dd1043fd1856714d17c9ccfe

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

require_relative 'ext'

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

            def service?
              mode == Ext::SERVICE
            end

            def full?
              mode == Ext::FULL
            end

            def append?
              append
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datadog-2.7.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
datadog-2.6.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
datadog-2.5.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
datadog-2.4.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
datadog-2.3.0 lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb