What problem does it solve?
Scala Golem agents emit no telemetry by default, making it hard to observe agent invocations, RPC calls, and resource usage in production. This Skill guides you through enabling the built-in golem-otlp-exporter plugin so traces, logs, and metrics flow to any OTLP-compatible collector.
Core Features & Use Cases
- Plugin Configuration: Add the golem-otlp-exporter plugin to golem.yaml with endpoint, signals, headers, and service-name-mode parameters, including per-environment presets.
- Custom Spans: Create custom trace spans with attributes using the ContextApi from the Scala SDK, with automatic trace context propagation across HTTP routes and RPC calls.
- Metrics & Logs Export: Export 20+ built-in runtime metrics (invocation counts, memory, fuel, transactions) and forward log output to the collector.
- Use Case: You are deploying a Scala agent to production and need distributed tracing in Jaeger and metrics in Prometheus. Enable the plugin in golem.yaml, run golem deploy, and point the endpoint at your OTLP collector.
Quick Start
Enable the OTLP exporter plugin for my Scala Golem agent and show me how to add a custom span with the ContextApi.