The telemetry module of NocoBase is encapsulated based on OpenTelemetry. This article introduces how to use the telemetry module to collect Trace and Metric data to enhance the observability of the NocoBase system.
References:
References:
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 applied.
References:
References: