Skip to content

Commit

Permalink
fix: pass on sentry-trace header
Browse files Browse the repository at this point in the history
  • Loading branch information
lkm committed May 5, 2021
1 parent 1db07f0 commit f12dbc5
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 f12dbc5

Please sign in to comment.