v0.7.3
Fixed
- Fixed
Event::$timeformatting that produced ISO 8601 with a numeric offset (e.g.2026-04-07T11:34:24+00:00) viaformat('c'). Logtide's backend uses Zod's strictz.string().datetime(), which only accepts ISO 8601 ending inZ, so everycaptureLog(...)call was rejected with HTTP 400 "Validation error". The SDK now emits UTC ISO 8601 with aZsuffix (2026-04-07T11:34:24.886Z). Closes logtide-dev/logtide#180. - Fixed empty
metadatafield being serialized as JSON array[]instead of object{}. The backend schema ismetadata: z.record(z.unknown()).optional(), which rejects arrays with "Expected object, received array". DefaultcaptureLog(...)calls without any metadata now serializemetadataas an empty JSON object via\stdClass, so the first-time-user happy path validates cleanly. - Fixed OTLP
startTimeUnixNano,endTimeUnixNano, and span eventtimeUnixNanobeing emitted in scientific notation (e.g."1.7755623882398E+18") due to a naive(string) ($float * 1e9)cast. OTLP requires a digit-only stringifieduint64. The SDK now usessprintf('%.0f', ...)to emit a fixed-point integer string.
Full Changelog: https://github.com/logtide-dev/logtide-php/blob/main/CHANGELOG.md