Class TestTraceProcessor
Implements
Inherited Members
Namespace: Phobos.TestKit
Assembly: Phobos.TestKit.dll
Syntax
public class TestTraceProcessor : BaseProcessor<Activity>, IDisposable
Constructors
TestTraceProcessor()
Declaration
public TestTraceProcessor()
Properties
CompletedSpans
Declaration
public ConcurrentBag<Activity> CompletedSpans { get; }
Property Value
Type | Description |
---|---|
ConcurrentBag<Activity> |
Methods
OnEnd(Activity)
Called synchronously when a telemetry object is ended.
Declaration
public override void OnEnd(Activity data)
Parameters
Type | Name | Description |
---|---|---|
Activity | data | The ended telemetry object. |
Overrides
Remarks
This function is called synchronously on the thread which ended the telemetry object. This function should be thread-safe, and should not block indefinitely or throw exceptions.
OnForceFlush(int)
Called by ForceFlush
. This function should block the current
thread until flush completed, shutdown signaled or timed out.
Declaration
protected override bool OnForceFlush(int timeoutMilliseconds)
Parameters
Type | Name | Description |
---|---|---|
int | timeoutMilliseconds | The number (non-negative) of milliseconds to wait, or
|
Returns
Type | Description |
---|---|
bool | Returns |
Overrides
Remarks
This function is called synchronously on the thread which called
ForceFlush
. This function should be thread-safe, and should
not throw exceptions.
OnShutdown(int)
Called by Shutdown
. This function should block the current
thread until shutdown completed or timed out.
Declaration
protected override bool OnShutdown(int timeoutMilliseconds)
Parameters
Type | Name | Description |
---|---|---|
int | timeoutMilliseconds | The number (non-negative) of milliseconds to wait, or
|
Returns
Type | Description |
---|---|
bool | Returns |
Overrides
Remarks
This function is called synchronously on the thread which made the
first call to Shutdown
. This function should not throw
exceptions.