Skip to content

Commit

Permalink
Merge pull request #60 from bookboon/hotfix/sentry-pass-through
Browse files Browse the repository at this point in the history
fix: pass on sentry-trace header
  • Loading branch information
lkm committed May 5, 2021
2 parents 1db07f0 + f12dbc5 commit 2fce936
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Client/Oauth/BookboonProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ protected function getDefaultHeaders()
$headers = parent::getDefaultHeaders();

foreach ($this->getParentRequestHeaders() as $key => $value) {
if (stripos($key, 'x-b3-') !== false || stripos($key, 'x-request-id') !== false) {
if (stripos($key, 'x-b3-') !== false
|| stripos($key, 'x-request-id') !== false
|| stripos($key, 'sentry-trace') !== false
) {
$headers[$key] = $value;
}
}
Expand Down

0 comments on commit 2fce936

Please sign in to comment.