Module: Datadog::Tracing::Contrib::Dalli::Ext

Defined in:
lib/datadog/tracing/contrib/dalli/ext.rb

Overview

Dalli integration constants

Constant Summary collapse

ENV_ENABLED =

DEV: Even though this is the dalli integration, all spans are named ‘memcached.*`. DEV: This happens because such spans have special treatment in backend, with memcached-specific handling. DEV: If add support for the `memcached` gem (not popular as of 2023), we’ll have issues with span naming DEV: conflicts.

'DD_TRACE_DALLI_ENABLED'
ENV_ANALYTICS_SAMPLE_RATE =
'DD_TRACE_DALLI_ANALYTICS_SAMPLE_RATE'
ENV_COMMAND_ENABLED =

DEV: This is named ‘MEMCACHED` because the spans it refer to are `memcached.*` and this variable DEV: is a global flag that affects all memcached spans generated by any Datadog product.

'DD_TRACE_MEMCACHED_COMMAND_ENABLED'
ENV_SERVICE_NAME =
'DD_TRACE_DALLI_SERVICE_NAME'
ENV_PEER_SERVICE =
'DD_TRACE_DALLI_PEER_SERVICE'
QUANTIZE_MAX_CMD_LENGTH =
100
DEFAULT_PEER_SERVICE_NAME =
'memcached'
SPAN_COMMAND =
'memcached.command'
SPAN_TYPE_COMMAND =
'memcached'
TAG_COMMAND =
'memcached.command'
TAG_COMPONENT =
'dalli'
TAG_OPERATION_COMMAND =
'command'
TAG_SYSTEM =
'memcached'
PEER_SERVICE_SOURCES =
Array[
Tracing::Metadata::Ext::TAG_PEER_HOSTNAME,
Tracing::Metadata::Ext::NET::TAG_DESTINATION_NAME,
Tracing::Metadata::Ext::NET::TAG_TARGET_HOST,].freeze