Deploy and operate

Logs, metrics, and tracing

Use logs to locate an operation, metrics to observe aggregate behavior, and traces to follow a request across stages. These signals describe service behavior; they do not replace inspection of stored Memory or Source evidence.

Logs

The foreground Server writes operational logs to its process output. Configure POWERCONTEXT_SERVER_LOGGING_LEVEL (default INFO), POWERCONTEXT_SERVER_LOGGING_FORMAT (console or json), and POWERCONTEXT_SERVER_LOGGING_ACCESS (default true). For a native personal service, run powercontext service status to find the journal selector or log paths. Docker users can inspect container logs.

Use the response's X-PowerContext-Request-ID to correlate a failed request with diagnostics. The host guides also explain content-free recall and capture diagnostics; a missing context result can be valid rather than an outage.

Metrics and readiness

Metrics are enabled by default at /metrics. In enforced mode, authenticate the metrics request as an authorized Principal. Liveness at /health/live and readiness at /health/ready remain public.

Use powercontext ready and powercontext capabilities to distinguish an unavailable database from a degraded optional model provider. See Troubleshoot for status definitions and recovery steps.

Tracing

Install the tracing-otlp extra, enable POWERCONTEXT_SERVER_TRACING_ENABLED=true, and configure an OTLP HTTP receiver. Follow the complete Phoenix or Langfuse procedure. Without the extra, enabling tracing fails at startup. PowerContext traces its own transport, application, and model calls; tracing does not capture unrelated host model calls automatically.

For environment-file deployments, put the tracing and OpenTelemetry variables in the explicit file passed to the Server. See environment configuration for precedence rules.

On this page