Module: Datadog::Analytics
- Defined in:
- lib/ddtrace/analytics.rb
Overview
Defines analytics behavior
Defined Under Namespace
Modules: Span
Class Method Summary collapse
Class Method Details
.set_sample_rate(span, sample_rate) ⇒ Object
7 8 9 10 |
# File 'lib/ddtrace/analytics.rb', line 7 def set_sample_rate(span, sample_rate) return if span.nil? || !sample_rate.is_a?(Numeric) span.set_metric(Datadog::Ext::Analytics::TAG_SAMPLE_RATE, sample_rate) end |