Sha256: d5eea3605266a874a8c063d8b88b303d10234fe7d5dea8c31e9235d4b7c2bff3

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module AppSec
    module Utils
      # Utility class to to AppSec-specific trace operations
      class TraceOperation
        def self.appsec_standalone_reject?(trace)
          Datadog.configuration.appsec.standalone.enabled &&
            (trace.nil? || trace.get_tag(Datadog::AppSec::Ext::TAG_DISTRIBUTED_APPSEC_EVENT) != '1')
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/appsec/utils/trace_operation.rb
datadog-2.8.0 lib/datadog/appsec/utils/trace_operation.rb
datadog-2.7.1 lib/datadog/appsec/utils/trace_operation.rb
datadog-2.7.0 lib/datadog/appsec/utils/trace_operation.rb
datadog-2.6.0 lib/datadog/appsec/utils/trace_operation.rb
datadog-2.5.0 lib/datadog/appsec/utils/trace_operation.rb