Sha256: cff5499ae2f3bf505789bf697da531ed2efc431d782e4988928ba6a36308ebb2
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
require 'rails_distributed_tracing/trace_id_store' module DistributedTracing TRACE_ID = 'Request-ID'.freeze def self.log_tag lambda do |request| request_id = request.headers[TRACE_ID] || request.request_id TraceIdStore.trace_id = request_id end end def self.trace_id TraceIdStore.trace_id end def self.trace_id=(id) TraceIdStore.trace_id = id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_distributed_tracing-1.0 | lib/rails_distributed_tracing/distributed_tracing.rb |