mirrorkit-go is the Go sibling of the Python and TypeScript collectors. It does exactly one thing: take traces you hand it and send them to Mirrors — batched in the background, non-blocking, and safe (it never panics into your app after Init). It does not instrument SDKs and does not run agents; you build the trace, it ships it.
Install
Usage
Tool calls
Build tool-call and tool-result messages with the helpers:Options
Options.Endpoint → MIRRORKIT_ENDPOINT → MIRROR_ENDPOINT → the production default.
Lifecycle
Init / LogTrace / Flush / Shutdown. For multiple independent collectors, use NewClient and call LogTrace / Flush / Shutdown on the returned *Client.
Each trace is flushed to
{endpoint}/api/collect with Authorization: Bearer <apiKey> — see the collect API reference for the wire format.