Telemetry
Overview
Telemetry is the telemetry module of NocoBase, encapsulating OpenTelemetry support for registering metrics and traces within the OpenTelemetry ecosystem.
Class Methods
constructor()
Constructor to create a Telemetry instance.
Signature
constructor(options?: TelemetryOptions)
Type
Details
init()
Registers instrumentation and initializes Trace and Metric.
Signature
init(): void
start()
Starts the processing of Trace and Metric related data, such as exporting to Prometheus.
Signature
start(): void
shutdown()
Stops the processing of Trace and Metric related data.
Signature
shutdown(): Promise<void>
addInstrumentation()
Adds instrumentation libraries.
Signature
addInstrumentation(...instrumentation: InstrumentationOption[])

