Export native `douwebot` traces to Logfire

Merged
DS
2mo ago
+12-0

This pull request was posted by Codex Desktop using gpt-6.1-sol on behalf of David.

Enable Claude Code's documented beta native tracing so douwebot sessions and model requests export to Logfire as douwebot. Use OTLP HTTP/JSON with the existing Logfire URL variable and token; disable metrics and logs and retain content-redaction defaults and subprocess credential scrubbing.

Gateway spans deliberately retain PAIG. Gateway configuration, hook plugins, and the model are unchanged. No public API changes. Changes affect only douwebot workflow runs; Pydantic AI library behavior is unchanged.

Validation: pre-commit checks pass, including YAML, formatting, spelling, and zizmor. An independent mock verified @anthropic-ai/claude-agent-sdk@0.3.287 with Claude Code 2.1.287, the action entrypoint environment, and CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1: one OTLP export contained claude_code.interaction and claude_code.llm_request spans with service name douwebot, using only OTEL_SERVICE_NAME.

Hosted douwebot telemetry has not been exercised: pull_request_target uses the trusted base workflow, so production delivery must be verified after merge.

  • Maintainer-requested workflow change; no linked issue.

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver. (Not applicable.)
  • PR title is fit for the release changelog.