Sha256: 1bf8c103c7731b48609aedb0b3526c78d3cd27ed5d0c8e3f7ea469678b701b99
Contents?: true
Size: 768 Bytes
Versions: 4
Compression:
Stored size: 768 Bytes
Contents
# typed: true require 'datadog/tracing/analytics' module Datadog module Tracing module Contrib # Defines analytics behavior for integrations # @public_api module Analytics module_function # Checks whether analytics should be enabled. # `flag` is a truthy/falsey value that represents a setting on the integration. def enabled?(flag = nil) (Datadog.configuration.tracing.analytics.enabled && flag != false) || flag == true end def set_sample_rate(span, sample_rate) Tracing::Analytics.set_sample_rate(span, sample_rate) end def set_measured(span, value = true) Tracing::Analytics.set_measured(span, value) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems