Module: Datadog::Tracing::Sampling::Ext::Priority

Defined in:
lib/datadog/tracing/sampling/ext.rb

Overview

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.

Constant Summary collapse

USER_REJECT =

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.

-1
# Used by the {PrioritySampler} to inform the backend that a trace should be rejected and not stored.
AUTO_REJECT =

Used by the PrioritySampler to inform the backend that a trace should be rejected and not stored.

0
AUTO_KEEP =

Used by the PrioritySampler to inform the backend that a trace should be kept and stored.

1
USER_KEEP =

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.

2