Telemetry
This feature is currently experimental.
NocoBase's Telemetry module is encapsulated based on OpenTelemetry, used for collecting Trace and Metric data to enhance the observability of NocoBase.
Instrumentation
Metrics
For detailed usage, see OpenTelemetry - Acquiring a Meter.
Traces
For detailed usage, see OpenTelemetry - Acquiring a Tracer.
Libraries
In NocoBase, the initialization location of the telemetry module is app.beforeLoad. Therefore, not all instrumentation libraries are suitable for NocoBase.
For example, instrumentation-koa needs to be introduced before Koa is instantiated, but although NocoBase's Application is based on Koa, the telemetry module is initialized after the Application is instantiated, so it cannot be used.
For detailed usage, see OpenTelemetry - Libraries.
Collection
Metrics
Traces
For detailed usage, see OpenTelemetry - Exporters.
Related Links
- Logger — Using logging alongside telemetry for a complete observability solution
- Plugin — Register telemetry instrumentation and collectors in plugins
- Server Development Overview — The position of the telemetry module in server architecture
- Event — Initialize telemetry in
beforeLoadthrough the event mechanism - Middleware — Combine telemetry with middleware for request tracing

