이 문서는 AI에 의해 번역되었습니다. 정확한 정보는 영어 버전을 참조하세요.
constructor()Trace 인스턴스를 생성하는 생성자 함수입니다.
constructor(options?: TraceOptions)| 속성 | 타입 | 설명 | 기본값 |
|---|---|---|---|
tracerName | string | Trace 식별자 | nocobase-trace |
version | string | NocoBase 현재 버전 번호 | |
processorName | string | string[] | 활성화하려는 등록된 SpanProcessor의 식별자 |
init()NodeTracerProvider를 초기화합니다.
init(): voidregisterProcessor()SpanProcessor를 등록합니다.
registerProcessor(name: string, processor: GetSpanProcessor)| 매개변수 | 타입 | 설명 |
|---|---|---|
name | string | SpanProcessor 고유 식별자 |
processor | () => SpanProcessor | SpanProcessor를 가져오는 메서드 |
getTracer()Tracer를 가져옵니다.
getTracer(name?: string, version?: string)| 매개변수 | 타입 | 설명 | 기본값 |
|---|---|---|---|
name | string | Trace 식별자 | nocobase-trace |
version | string | NocoBase 현재 버전 번호 |
start()SpanProcessor를 시작합니다.
start(): voidshutdown()SpanProcessor를 중지합니다.
shutdown(): Promise<void>