lib/ddtrace/ext/sampling.rb in ddtrace-0.30.1 vs lib/ddtrace/ext/sampling.rb in ddtrace-0.31.0
- old
+ new
@@ -1,7 +1,10 @@
module Datadog
module Ext
module Sampling
+ ENV_SAMPLE_RATE = 'DD_TRACE_SAMPLE_RATE'.freeze
+ ENV_RATE_LIMIT = 'DD_TRACE_RATE_LIMIT'.freeze
+
# If rule sampling is applied to a span, set this metric the sample rate configured for that rule.
# This should be done regardless of sampling outcome.
RULE_SAMPLE_RATE = '_dd.rule_psr'.freeze
# If rate limiting is checked on a span, set this metric the effective rate limiting rate applied.