Skip to content

v0.5.0

Choose a tag to compare

@hpopp hpopp released this 25 Sep 01:07
· 11 commits to main since this release
e25e2b2

Added

  • OpenTelemetry tracing behind OTEL_EXPORTER_OTLP_ENDPOINT. Each
    request runs in a server span that continues an incoming
    traceparent, with child spans for the database phase, embedding
    requests, and MCP tool calls. Spans export as OTLP/JSON over HTTP
    in batches. Responses carry a traceparent header and access log
    lines start with the trace id when tracing is on.
  • lib/open_telemetry, the tracing package behind the above, with
    W3C context propagation, closure-scoped spans, and a batching
    exporter process.
  • Conn.assigns for request-scoped values, with assign,
    assigned, and Router.dispatch_conn.
  • design/OBSERVABILITY.md, the design for runtime-owned trace
    context, logging, and metrics in Koja.
  • Structured logging behind GCP_PROJECT_ID. When it is set, every
    log line is one Cloud Logging JSON object with severity,
    message, and time. Access lines carry the method, path,
    status, and latency in httpRequest, and error lines carry the
    Error Reporting @type and a serviceContext named by
    GCP_SERVICE_NAME. Without it, lines stay text. LOG_LEVEL sets
    the floor.
  • lib/log, the logging package behind the above, with a Logger
    value, leveled calls, attribute maps, and text and GCP formatters.

Changed

  • Logging goes through a Logger value built at startup and passed
    to the code that logs, in place of the static Log struct.

Fixed

  • The startup log names the running version again.