} public function serialize(mixed
$data, string
$format, array
$context =
[]): string
{ $context[self::DEBUG_TRACE_ID
] =
$traceId =
uniqid();
$startTime =
microtime(true
);
$result =
$this->serializer->
serialize($data,
$format,
$context);
$time =
microtime(true
) -
$startTime;
$caller =
$this->
getCaller(__FUNCTION__, SerializerInterface::
class);
$this->dataCollector->
collectSerialize($traceId,
$data,
$format,
$context,
$time,
$caller);
return $result;
} public function deserialize(mixed
$data, string
$type, string
$format, array
$context =
[]): mixed
{ $context[self::DEBUG_TRACE_ID
] =
$traceId =
uniqid();
$startTime =
microtime(true
);