Sha256: 019598d759670c48df897fd1adbc0e8d597d6297063d300fb34c87b3226a8c1b

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

module DistributedTracing
  class FaradayMiddleware < ::Faraday::Middleware
    def call(env)
      env[:request_headers].merge!({DistributedTracing::TRACE_ID => DistributedTracing.trace_id})
      @app.call(env)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_distributed_tracing-1.2 lib/rails_distributed_tracing/plugins/faraday.rb
rails_distributed_tracing-1.1 lib/rails_distributed_tracing/plugins/faraday.rb
rails_distributed_tracing-1.0 lib/rails_distributed_tracing/plugins/faraday.rb