Export Logfire traces from three GLM Agentic Workflows
This pull request was posted by Codex Desktop using gpt-6-luna on behalf of David.
- Part of pydantic/pydanty#19 (this narrow PR does not close it).
Why we make these changes
Three Z.AI Agentic Workflows omitted shared/otel-logfire.md, so the shim skipped trace instrumentation. This wires the shared Logfire import and its compiled OTLP settings into all three workflows.
New public surface
None.
User-visible behavior
Before: these workflows did not export traces through the shared Logfire configuration.
After: the workflows provide the OTLP environment and firewall access needed to export traces; live export still needs natural-run verification.
Verification
test_zai_workflow_requires_logfire_importproves the guard behavior.- 89 targeted tests, the workflow guard, Ruff, pinned
gh-awv0.86.2 compile, and pre-commit passed.
What changes for existing users
Nothing in the Pydantic AI library API.
Security
The shared shim calls logfire.instrument_pydantic_ai(include_content=True, include_binary_content=True), so model prompts and responses are exported to Logfire, matching existing sibling workflows. The shared import passes the Logfire write token LOGFIRE_TOKEN to the agent container; human review should assess that exposure. gh-aw masks the OTLP Authorization header, but this does not prevent content export. The workflows allow the six Pydantic Logfire ingest hosts; action pins, job permissions, and redirects are unchanged.
Checklist
- No breaking changes in accordance with the version policy.
- No compatibility impact.
- PR title is fit for the release changelog.