Skip to content
This repository was archived by the owner on Dec 8, 2020. It is now read-only.

Commit b08d441

Browse files
committed
Recognize the x-amzn-requestid header
1 parent ab08494 commit b08d441

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/timber/utils/http_events.ex

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ defmodule Timber.Utils.HTTPEvents do
3232

3333
def get_request_id_from_headers(%{"request-id" => request_id}), do: request_id
3434

35+
# Amazon uses their own *special* header
36+
def get_request_id_from_headers(%{"x-amzn-requestid" => request_id}), do: request_id
37+
3538
def get_request_id_from_headers(_headers), do: nil
3639

3740
@doc false

0 commit comments

Comments
 (0)