@@ -41,7 +41,7 @@ public function __construct(
4141
4242 public function serialize (mixed $ data , string $ format , array $ context = []): string
4343 {
44- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
44+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
4545
4646 $ startTime = microtime (true );
4747 $ result = $ this ->serializer ->serialize ($ data , $ format , $ context );
@@ -56,7 +56,7 @@ public function serialize(mixed $data, string $format, array $context = []): str
5656
5757 public function deserialize (mixed $ data , string $ type , string $ format , array $ context = []): mixed
5858 {
59- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
59+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
6060
6161 $ startTime = microtime (true );
6262 $ result = $ this ->serializer ->deserialize ($ data , $ type , $ format , $ context );
@@ -71,7 +71,7 @@ public function deserialize(mixed $data, string $type, string $format, array $co
7171
7272 public function normalize (mixed $ object , ?string $ format = null , array $ context = []): array |string |int |float |bool |\ArrayObject |null
7373 {
74- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
74+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
7575
7676 $ startTime = microtime (true );
7777 $ result = $ this ->serializer ->normalize ($ object , $ format , $ context );
@@ -86,7 +86,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
8686
8787 public function denormalize (mixed $ data , string $ type , ?string $ format = null , array $ context = []): mixed
8888 {
89- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
89+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
9090
9191 $ startTime = microtime (true );
9292 $ result = $ this ->serializer ->denormalize ($ data , $ type , $ format , $ context );
@@ -101,7 +101,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
101101
102102 public function encode (mixed $ data , string $ format , array $ context = []): string
103103 {
104- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
104+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
105105
106106 $ startTime = microtime (true );
107107 $ result = $ this ->serializer ->encode ($ data , $ format , $ context );
@@ -116,7 +116,7 @@ public function encode(mixed $data, string $format, array $context = []): string
116116
117117 public function decode (string $ data , string $ format , array $ context = []): mixed
118118 {
119- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
119+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
120120
121121 $ startTime = microtime (true );
122122 $ result = $ this ->serializer ->decode ($ data , $ format , $ context );
0 commit comments