Skip to content

v0.9.2

Choose a tag to compare

@Polliog Polliog released this 11 Jun 06:29

Added

  • W3C Trace Context support (logtide_sdk.tracecontext): parse_traceparent, format_traceparent, generate_trace_id, generate_span_id, resolve_trace_id — all exported from the package root.
  • All log methods (sync and async) accept keyword-only trace_id and span_id, sent as top-level fields.
  • LogEntry.span_id field, serialized as top-level span_id.

Changed

  • Middleware (Flask, Django, Starlette/FastAPI) now resolve the inbound trace context per the W3C spec: traceparent header first, legacy X-Trace-ID as deprecated fallback, otherwise a new W3C trace ID is generated. The resolved trace ID is sent as the top-level trace_id field instead of metadata["trace_id"], so trace correlation in the platform UI now works for middleware logs.
  • Auto-generated trace IDs (auto_trace_id, with_new_trace_id) are now 32-char lowercase-hex W3C IDs instead of UUIDs.