module Sentry::Utils::RequestId

Constants

REQUEST_ID_HEADERS

Public Class Methods

read_from(env) click to toggle source

Request ID based on ActionDispatch::RequestId

# File lib/sentry/utils/request_id.rb, line 7
def self.read_from(env)
  REQUEST_ID_HEADERS.each do |key|
    request_id = env[key]
    return request_id if request_id
  end
  nil
end