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.51.1 lib/ddtrace/ext/priority.rb
ddtrace-0.51.0 lib/ddtrace/ext/priority.rb
ddtrace-0.50.0 lib/ddtrace/ext/priority.rb
ddtrace-0.49.0 lib/ddtrace/ext/priority.rb
ddtrace-0.48.0 lib/ddtrace/ext/priority.rb
ddtrace-0.47.0 lib/ddtrace/ext/priority.rb
ddtrace-0.46.0 lib/ddtrace/ext/priority.rb
ddtrace-0.45.0 lib/ddtrace/ext/priority.rb
ddtrace-0.44.0 lib/ddtrace/ext/priority.rb
ddtrace-0.43.0 lib/ddtrace/ext/priority.rb
ddtrace-0.42.0 lib/ddtrace/ext/priority.rb
ddtrace-0.41.0 lib/ddtrace/ext/priority.rb
ls-trace-0.2.0 lib/ddtrace/ext/priority.rb
ddtrace-0.40.0 lib/ddtrace/ext/priority.rb
ddtrace-0.39.0 lib/ddtrace/ext/priority.rb
ddtrace-0.38.0 lib/ddtrace/ext/priority.rb
ddtrace-0.37.0 lib/ddtrace/ext/priority.rb
ddtrace-0.36.0 lib/ddtrace/ext/priority.rb
ls-trace-0.1.2 lib/ddtrace/ext/priority.rb
ddtrace-0.35.2 lib/ddtrace/ext/priority.rb