OpenTelemetry in Moost
@moostjs/otel integrates OpenTelemetry with Moost, providing automatic distributed tracing and metrics collection. It hooks into Moost's context injector system to wrap every event lifecycle phase in spans without manual instrumentation.
For the full documentation, visit the dedicated OpenTelemetry module section.
Quick links
| Page | What you'll learn |
|---|---|
| Overview & Quick Start | Installation, setup, and how it works |
| Setup & Configuration | SDK configuration, exporters, span processors, and filtering decorators |
| Automatic Spans | Every span Moost creates, their names, attributes, and lifecycle mapping |
| Composables | useOtelContext(), useSpan(), useOtelPropagation(), child spans, and custom attributes |
| Metrics | Auto-collected duration histogram, attributes, and custom metric attributes |