import { DecoratorExecutorParamBase, DecoratorHandlerBase } from '@mwcp/share'; import { OtelComponent } from '../component.js'; import type { DecoratorExecutorParam, TraceDecoratorOptions } from '../trace.service/index.trace.service.js'; import { TraceService } from '../trace.service/index.trace.service.js'; import { Config } from '../types.js'; export declare class DecoratorHandlerTraceInit extends DecoratorHandlerBase { protected readonly config: Config; protected readonly otelComponent: OtelComponent; protected readonly traceService: TraceService; isEnable(options: DecoratorExecutorParam): boolean; genExecutorParam(options: DecoratorExecutorParamBase): DecoratorExecutorParam>; before(options: DecoratorExecutorParam): Promise; /** * Span will be ended if `autoEndSpan` is true when afterReturn() or afterThrow() */ afterReturn(options: DecoratorExecutorParam): Promise; afterThrow(options: DecoratorExecutorParam): void; private traceError; }