MultiTracingProcessor
このコンテンツはまだ日本語訳がありません。
Interface for processing traces
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MultiTracingProcessor(): MultiTracingProcessor;Returns
Section titled “Returns”MultiTracingProcessor
Methods
Section titled “Methods”addTraceProcessor()
Section titled “addTraceProcessor()”addTraceProcessor(processor): void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”void
dispatchSpan()
Section titled “dispatchSpan()”dispatchSpan(span): Promise<void>;Dispatches a completed span lifecycle to every registered processor without calling Span.start() or Span.end().
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<void>
dispatchSpanEnd()
Section titled “dispatchSpanEnd()”dispatchSpanEnd(span): Promise<void>;Dispatches a span end event to every registered processor without calling Span.end().
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<void>
dispatchSpanStart()
Section titled “dispatchSpanStart()”dispatchSpanStart(span): Promise<void>;Dispatches a span start event to every registered processor without calling Span.start().
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<void>
dispatchTrace()
Section titled “dispatchTrace()”dispatchTrace(trace): Promise<void>;Dispatches a completed trace lifecycle to every registered processor without calling Trace.start() or Trace.end().
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”Promise<void>
forceFlush()
Section titled “forceFlush()”forceFlush(): Promise<void>;Called when a trace is being flushed
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”onSpanEnd()
Section titled “onSpanEnd()”onSpanEnd(span): Promise<void>;Called when a span is ended
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”onSpanStart()
Section titled “onSpanStart()”onSpanStart(span): Promise<void>;Called when a span is started
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”onTraceEnd()
Section titled “onTraceEnd()”onTraceEnd(trace): Promise<void>;Called when a trace is ended
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”onTraceStart()
Section titled “onTraceStart()”onTraceStart(trace): Promise<void>;Called when a trace is started
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”setProcessors()
Section titled “setProcessors()”setProcessors(processors): void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”void
shutdown()
Section titled “shutdown()”shutdown(timeout?): Promise<void>;Called when the trace processor is shutting down
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”start()
Section titled “start()”start(): void;Called when the trace processor should start processing traces. Only available if the processor is performing tasks like exporting traces in a loop to start the loop
Returns
Section titled “Returns”void