Module: Datadog::Ext::Priority

Defined in:
lib/ddtrace/ext/priority.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 explicitely inform the backend that a trace should be rejected and not stored.

-1
AUTO_REJECT =

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

0
AUTO_KEEP =

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

1
USER_KEEP =

Use this to explicitely inform the backend that a trace should be kept and stored.

2