We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78c010d + 08ca9b1 commit 9f7b695Copy full SHA for 9f7b695
src/Wrappers/Traits/EventTrait.php
@@ -69,7 +69,7 @@ private function initContext(EventSharedData $sharedData) : Context
69
{
70
// Generate Random UUIDs
71
$this->id = UID::Generate(16); //Uuid::uuid4()->toString();
72
- $this->trace_id = UID::Generate(16); //Uuid::uuid4()->toString();
+ $this->trace_id = $this->trace_id = $_SERVER['HTTP_ELASTIC_APM_TRACEPARENT'] ? : UID::Generate(16); //Uuid::uuid4()->toString();
73
74
// Set Shared Context Variable for further use
75
$this->sharedData = $sharedData;
0 commit comments