BatchTraceProcessor
Interface for processing traces
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BatchTraceProcessor(exporter, __namedParameters?): BatchTraceProcessor
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”BatchTraceProcessor
Methods
Section titled “Methods”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”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
>