Sha256: 5e9fd3947f362fb83de9e4eeaf04c0f26c311a2eb0f17a67c7211ec1f0457bb2

Contents?: true

Size: 755 Bytes

Versions: 86

Compression:

Stored size: 755 Bytes

Contents

module Datadog
  module Ext
    # Priority is a hint given to the backend so that it knows which traces to reject or kept.
    # In a distributed context, it should be set before any context propagation (fork, RPC calls) to be effective.
    module Priority
      # Use this to explicitely inform the backend that a trace should be rejected and not stored.
      USER_REJECT = -1
      # Used by the builtin sampler to inform the backend that a trace should be rejected and not stored.
      AUTO_REJECT = 0
      # Used by the builtin sampler to inform the backend that a trace should be kept and stored.
      AUTO_KEEP = 1
      # Use this to explicitely inform the backend that a trace should be kept and stored.
      USER_KEEP = 2
    end
  end
end

Version data entries

86 entries across 86 versions & 2 rubygems

Version Path
ddtrace-0.25.0 lib/ddtrace/ext/priority.rb
ddtrace-0.24.0 lib/ddtrace/ext/priority.rb
ddtrace-0.23.3 lib/ddtrace/ext/priority.rb
ddtrace-0.23.2 lib/ddtrace/ext/priority.rb
ddtrace-0.23.1 lib/ddtrace/ext/priority.rb
ddtrace-0.23.0 lib/ddtrace/ext/priority.rb
ddtrace-0.22.0 lib/ddtrace/ext/priority.rb
ddtrace-0.21.2 lib/ddtrace/ext/priority.rb
ddtrace-0.21.1 lib/ddtrace/ext/priority.rb
ddtrace-0.21.0 lib/ddtrace/ext/priority.rb
ddtrace-0.20.0 lib/ddtrace/ext/priority.rb
ddtrace-0.18.3 lib/ddtrace/ext/priority.rb
ddtrace-0.18.2 lib/ddtrace/ext/priority.rb
ddtrace-0.18.1 lib/ddtrace/ext/priority.rb
ddtrace-0.18.0 lib/ddtrace/ext/priority.rb
ddtrace-0.17.3 lib/ddtrace/ext/priority.rb
ddtrace-0.17.2 lib/ddtrace/ext/priority.rb
ddtrace-0.17.1 lib/ddtrace/ext/priority.rb
ddtrace-0.17.0 lib/ddtrace/ext/priority.rb
ddtrace-0.16.1 lib/ddtrace/ext/priority.rb