Method: Datadog::Tracing::Contrib::Redis::Quantize.format_arg
- Defined in:
- lib/datadog/tracing/contrib/redis/quantize.rb
.format_arg(arg) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/datadog/tracing/contrib/redis/quantize.rb', line 33 def format_arg(arg) str = Core::Utils.utf8_encode(arg, binary: true, placeholder: PLACEHOLDER) Core::Utils.truncate(str, VALUE_MAX_LEN, TOO_LONG_MARK) rescue => e Datadog.logger.debug("non formattable Redis arg #{str}: #{e}") PLACEHOLDER end |