logologo
Get Started
Tutorials
Guide
Development
Plugins
API
Home
English
简体中文
日本語
한국어
Español
Português
Deutsch
Français
Русский
Get Started
Tutorials
Guide
Development
Plugins
API
Home
logologo
API Overview

@nocobase/auth

AuthManager
Auth
BaseAuth

@nocobase/cli

NocoBase CLI
Global Environment Variables

@nocobase/client

Application
Plugin

@nocobase/database

Collection
Field

interfaces

BaseInterface
Filter Operators

RelationRepository

BelongsToManyRepository
belongs-to-repository
HasManyRepository
HasOneRepository
Repository

shared

create-options
destroy-options
find-one
find-options
transaction
update-options

@nocobase/flow-engine

DataSourceManager
FlowContext
FlowEngine
FlowModel
FlowResource

@nocobase/server

AppCommand
Application
AuditManager
Context
Migration
Plugin

@nocobase/sdk

Auth
Storage

@nocobase/telemetry

Metric
Telemetry
Trace
Previous PageMetric
Next PageTrace

#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

export interface TelemetryOptions {
  serviceName?: string;
  version?: string;
  trace?: TraceOptions;
  metric?: MetricOptions;
}

#Details

PropertyTypeDescriptionDefault Value
serviceNamestringOptional. Refer to Semantic Conventionsnocobase
versionstringOptional. Refer to Semantic ConventionsOptional, current NocoBase version
traceTraceOptionsOptional. Refer to Trace-
metricMetricOptionsOptional. Refer to Metric-

#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[])