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 37b7fbd + 3a7b670 commit 09e5409Copy full SHA for 09e5409
src/TrackerRequest.php
@@ -68,7 +68,7 @@ public function getTraceId(): string
68
return $id;
69
}
70
71
- return (new UuidFactory)->uuid4()->toString();
+ return (new UuidFactory)->uuid7()->toString();
72
73
74
public function custom(string $header, Closure $callback): static
tests/Unit/Request/TrackIdTest.php
@@ -19,7 +19,7 @@
19
$telemetry = new TrackerRequest($request, $header);
20
$generated = $telemetry->getTraceId();
21
expect(Uuid::isValid($generated))->toBeTrue()
22
- ->and(Uuid::fromString($generated)->getVersion())->toBe(4);
+ ->and(Uuid::fromString($generated)->getVersion())->toBe(7);
23
24
// 3) traceId() without param sets header using getTraceId()
25
$telemetry->traceId();
0 commit comments