TracingProcessor
이 콘텐츠는 아직 번역되지 않았습니다.
Interface for processing traces
Methods
Section titled “Methods”forceFlush()
Section titled “forceFlush()”forceFlush(): Promise<void>;Called when a trace is being flushed
Returns
Section titled “Returns”Promise<void>
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>
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>
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>
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>
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>
start()?
Section titled “start()?”optional 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