Sha256: 16787ed2d13b7a66fc0146dd70728fe2d8e2a27c74d78ffa89ce42c92bcdd9a3
Contents?: true
Size: 898 Bytes
Versions: 33
Compression:
Stored size: 898 Bytes
Contents
# frozen_string_literal: true module Datadog module Tracing module Contrib module Lograge # Instrumentation for Lograge module Instrumentation def self.included(base) base.prepend(InstanceMethods) end # Instance methods for configuration module InstanceMethods def custom_options(event) return super unless Datadog.configuration.tracing.log_injection return super unless Datadog.configuration.tracing[:lograge].enabled original_custom_options = super(event) # Retrieves trace information for current thread correlation = Tracing.correlation # merge original lambda with datadog context correlation.to_h.merge(original_custom_options) end end end end end end end
Version data entries
33 entries across 33 versions & 2 rubygems