Skip to content

Commit

Permalink
HTTP_X_ATRACE_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
cqcqs committed Jul 11, 2022
1 parent 8d958b1 commit c54abc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/LogServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private function defineTraceId()
if (php_sapi_name() === 'cli') {
define('TRACE_ID', "console-" . time());
} else {
define('TRACE_ID', $_SERVER['HTTP_X_ATRACE_ID'] ?: $_SERVER['TRACE_ID'] ?: $_SERVER['REQUEST_TIME']);
define('TRACE_ID', $_SERVER['HTTP_X_ATRACE_ID'] ?? $_SERVER['TRACE_ID'] ?? $_SERVER['REQUEST_TIME']);
}
}
}
Expand Down

0 comments on commit c54abc3

Please sign in to comment.