Sha256: 7dd0131a53d046f3507af679cec0e5fafae4f2e16b051fcd2dc725873ae5b48c
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
require_relative './request_id_store' module DistributedTracing def self.request_id_tag lambda do |request| request_id = request.headers['Request-ID'] || request.request_id RequestIDStore.request_id = request_id end end def self.request_id_header {'Request-ID' => RequestIDStore.request_id} end def self.current_request_id RequestIDStore.request_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_distributed_tracing-0.0.1 | lib/rails_distributed_tracing/distributed_tracing.rb |