@@ -37,7 +37,7 @@ public function __construct(
37
37
38
38
public function serialize (mixed $ data , string $ format , array $ context = []): string
39
39
{
40
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
40
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
41
41
42
42
$ startTime = microtime (true );
43
43
$ result = $ this ->serializer ->serialize ($ data , $ format , $ context );
@@ -52,7 +52,7 @@ public function serialize(mixed $data, string $format, array $context = []): str
52
52
53
53
public function deserialize (mixed $ data , string $ type , string $ format , array $ context = []): mixed
54
54
{
55
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
55
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
56
56
57
57
$ startTime = microtime (true );
58
58
$ result = $ this ->serializer ->deserialize ($ data , $ type , $ format , $ context );
@@ -67,7 +67,7 @@ public function deserialize(mixed $data, string $type, string $format, array $co
67
67
68
68
public function normalize (mixed $ object , ?string $ format = null , array $ context = []): array |string |int |float |bool |\ArrayObject |null
69
69
{
70
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
70
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
71
71
72
72
$ startTime = microtime (true );
73
73
$ result = $ this ->serializer ->normalize ($ object , $ format , $ context );
@@ -82,7 +82,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
82
82
83
83
public function denormalize (mixed $ data , string $ type , ?string $ format = null , array $ context = []): mixed
84
84
{
85
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
85
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
86
86
87
87
$ startTime = microtime (true );
88
88
$ result = $ this ->serializer ->denormalize ($ data , $ type , $ format , $ context );
@@ -97,7 +97,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
97
97
98
98
public function encode (mixed $ data , string $ format , array $ context = []): string
99
99
{
100
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
100
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
101
101
102
102
$ startTime = microtime (true );
103
103
$ result = $ this ->serializer ->encode ($ data , $ format , $ context );
@@ -112,7 +112,7 @@ public function encode(mixed $data, string $format, array $context = []): string
112
112
113
113
public function decode (string $ data , string $ format , array $ context = []): mixed
114
114
{
115
- $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ();
115
+ $ context [self ::DEBUG_TRACE_ID ] = $ traceId = uniqid ('' , true );
116
116
117
117
$ startTime = microtime (true );
118
118
$ result = $ this ->serializer ->decode ($ data , $ format , $ context );
0 commit comments