Install mosaicstack-telemetry in Coordinator #370
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add the
mosaicstack-telemetryPython SDK toapps/coordinatorso the coordinator can track task completions it dispatches to coding harnesses.Requirements
Package Installation
mosaicstack-telemetryfrom Gitea PyPI registrypyproject.tomldependencieshttps://git.mosaicstack.dev/api/packages/mosaic/pypi/simple/Integration Pattern (async lifespan)
Environment Variables (auto-read by Python SDK)
Key SDK Details
httpx.AsyncClientfor HTTP,pydanticfor validationEventBuilderwith fluent API for constructing eventslogging.getLogger("mosaicstack_telemetry")What the Coordinator Tracks
The coordinator dispatches tasks to coding harnesses (Claude Code, Codex CLI, OpenCode). After each task completes, it should build a
TaskCompletionEventcapturing:Acceptance Criteria
Completed in commit
83d0cbeon feature/m10-telemetry. Installed mosaicstack-telemetry in coordinator, integrated TelemetryClient into FastAPI lifespan, created mosaic_telemetry.py helpers. 28 unit tests.