Skip to content

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.

PageWhat you'll learn
Overview & Quick StartInstallation, setup, and how it works
Setup & ConfigurationSDK configuration, exporters, span processors, and filtering decorators
Automatic SpansEvery span Moost creates, their names, attributes, and lifecycle mapping
ComposablesuseOtelContext(), useSpan(), useOtelPropagation(), child spans, and custom attributes
MetricsAuto-collected duration histogram, attributes, and custom metric attributes

Released under the MIT License.