@@ -41,7 +41,7 @@ public function __construct(
41
41
42
42
public function serialize (mixed $ data , string $ format , array $ context = []): string
43
43
{
44
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
44
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
45
45
46
46
$ startTime = microtime (true );
47
47
$ result = $ this ->serializer ->serialize ($ data , $ format , $ context );
@@ -56,7 +56,7 @@ public function serialize(mixed $data, string $format, array $context = []): str
56
56
57
57
public function deserialize (mixed $ data , string $ type , string $ format , array $ context = []): mixed
58
58
{
59
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
59
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
60
60
61
61
$ startTime = microtime (true );
62
62
$ result = $ this ->serializer ->deserialize ($ data , $ type , $ format , $ context );
@@ -71,7 +71,7 @@ public function deserialize(mixed $data, string $type, string $format, array $co
71
71
72
72
public function normalize (mixed $ object , ?string $ format = null , array $ context = []): array |string |int |float |bool |\ArrayObject |null
73
73
{
74
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
74
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
75
75
76
76
$ startTime = microtime (true );
77
77
$ result = $ this ->serializer ->normalize ($ object , $ format , $ context );
@@ -86,7 +86,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
86
86
87
87
public function denormalize (mixed $ data , string $ type , ?string $ format = null , array $ context = []): mixed
88
88
{
89
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
89
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
90
90
91
91
$ startTime = microtime (true );
92
92
$ result = $ this ->serializer ->denormalize ($ data , $ type , $ format , $ context );
@@ -101,7 +101,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
101
101
102
102
public function encode (mixed $ data , string $ format , array $ context = []): string
103
103
{
104
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
104
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
105
105
106
106
$ startTime = microtime (true );
107
107
$ result = $ this ->serializer ->encode ($ data , $ format , $ context );
@@ -116,7 +116,7 @@ public function encode(mixed $data, string $format, array $context = []): string
116
116
117
117
public function decode (string $ data , string $ format , array $ context = []): mixed
118
118
{
119
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
119
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
120
120
121
121
$ startTime = microtime (true );
122
122
$ result = $ this ->serializer ->decode ($ data , $ format , $ context );
0 commit comments