logologo
시작
가이드
개발
플러그인
API
홈
English
简体中文
日本語
한국어
Español
Português
Deutsch
Français
Русский
Italiano
Türkçe
Українська
Tiếng Việt
Bahasa Indonesia
ไทย
Polski
Nederlands
Čeština
العربية
עברית
हिन्दी
Svenska
시작
가이드
개발
플러그인
API
홈
logologo
API 개요

@nocobase/auth

AuthManager
Auth
BaseAuth

@nocobase/cache

CacheManager
캐시

@nocobase/cli

NocoBase CLI
전역 환경 변수

@nocobase/client

애플리케이션
플러그인

@nocobase/database

컬렉션
필드

interfaces

BaseInterface
필터 연산자

RelationRepository

BelongsToManyRepository
belongs-to-repository
HasManyRepository
HasOneRepository
리포지토리

shared

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

@nocobase/data-source-manager

DataSourceManager
DataSource (추상 클래스)
ICollectionManager
ICollection
IField
IModel
IRepository

@nocobase/flow-engine

데이터 소스 관리자
플로우 컨텍스트
FlowEngine
FlowModel
플로우 리소스

@nocobase/logger

로거

@nocobase/server

AppCommand
애플리케이션
AuditManager
컨텍스트
마이그레이션
플러그인

@nocobase/sdk

Auth
Storage
Next PageAPI 개요
AI 번역 알림

이 문서는 AI에 의해 번역되었습니다. 정확한 정보는 영어 버전을 참조하세요.

#Trace

#클래스 메서드

#constructor()

Trace 인스턴스를 생성하는 생성자 함수입니다.

#시그니처

  • constructor(options?: TraceOptions)

#타입

export type TraceOptions = {
  tracerName?: string;
  version?: string;
  processorName?: string | string[];
};

#상세 정보

속성타입설명기본값
tracerNamestringTrace 식별자nocobase-trace
versionstringNocoBase 현재 버전 번호
processorNamestring | string[]활성화하려는 등록된 SpanProcessor의 식별자

#init()

NodeTracerProvider를 초기화합니다.

#시그니처

  • init(): void

#registerProcessor()

SpanProcessor를 등록합니다.

#시그니처

  • registerProcessor(name: string, processor: GetSpanProcessor)

#타입

import { SpanProcessor } from '@opentelemetry/sdk-trace-base';

type GetSpanProcessor = () => SpanProcessor;

#상세 정보

매개변수타입설명
namestringSpanProcessor 고유 식별자
processor() => SpanProcessorSpanProcessor를 가져오는 메서드

#getTracer()

Tracer를 가져옵니다.

#시그니처

  • getTracer(name?: string, version?: string)

#상세 정보

매개변수타입설명기본값
namestringTrace 식별자nocobase-trace
versionstringNocoBase 현재 버전 번호

#start()

SpanProcessor를 시작합니다.

#시그니처

  • start(): void

#shutdown()

SpanProcessor를 중지합니다.

#시그니처

  • shutdown(): Promise<void>