v0.2.10
What's changed
Restores Opik trace export in embedded OpenClaw runs after the gateway's plugin lifecycle/architecture changes broke the plugin silently.
Fixes
- Hook registration timing β hooks are now registered at plugin registration time instead of inside
start(). The OpenClaw gateway seals its hook runner afterregister()returns, so hooks registered instart()were silently dropped. - Shared exporter state β mutable exporter state (Opik client, trace/span maps, flush queue) is now at module scope, so hook callbacks and
start()share the same state even when OpenClaw creates different service instances. - Missing
sessionKeyfallback β whenagentCtx.sessionKeyis absent (e.g. Nebius live gateway, Pinchbench, non-default agents), the plugin now resolves a session key via:sessionKey β sessionId β remembered agentId β last active session. projectNameon traces β traces now correctly route to the configured project instead of silently defaulting to "Default Project".