Sha256: 8e2227e41de278c6e2ae74ac4b1b4aa2053315473048d35f3d5d25016499540b
Contents?: true
Size: 957 Bytes
Versions: 3
Compression:
Stored size: 957 Bytes
Contents
# typed: strict 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 explicitly inform the backend that a trace MUST be rejected and not stored. # This includes rules and rate limits configured by the user through the {RuleSampler}. USER_REJECT = -1 # Used by the {PrioritySampler} to inform the backend that a trace should be rejected and not stored. AUTO_REJECT = 0 # Used by the {PrioritySampler} to inform the backend that a trace should be kept and stored. AUTO_KEEP = 1 # Use this to explicitly inform the backend that a trace MUST be kept and stored. # This includes rules and rate limits configured by the user through the {RuleSampler}. USER_KEEP = 2 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-0.54.2 | lib/ddtrace/ext/priority.rb |
ddtrace-0.54.1 | lib/ddtrace/ext/priority.rb |
ddtrace-0.54.0 | lib/ddtrace/ext/priority.rb |