Show / Hide Table of Contents

Class TestTraceProcessor

Inheritance
object
BaseProcessor<Activity>
TestTraceProcessor
Implements
IDisposable
Inherited Members
BaseProcessor<Activity>.OnStart(Activity)
BaseProcessor<Activity>.ForceFlush(int)
BaseProcessor<Activity>.Shutdown(int)
BaseProcessor<Activity>.Dispose()
BaseProcessor<Activity>.ToString()
BaseProcessor<Activity>.Dispose(bool)
BaseProcessor<Activity>.ParentProvider
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
BaseProcessor<Activity>.OnEnd(Activity)
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 Timeout.Infinite to wait indefinitely.

Returns
Type Description
bool

Returns true when flush succeeded; otherwise, false.

Overrides
BaseProcessor<Activity>.OnForceFlush(int)
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 Timeout.Infinite to wait indefinitely.

Returns
Type Description
bool

Returns true when shutdown succeeded; otherwise, false.

Overrides
BaseProcessor<Activity>.OnShutdown(int)
Remarks

This function is called synchronously on the thread which made the first call to Shutdown. This function should not throw exceptions.

Implements

IDisposable
In this article

Phobos®

APM for Akka.NET Applications

© 2025 Petabridge®

All rights reserved

Product
  • Purchase Phobos
  • Contact Sales
  • Phobos Quick Start Guide
  • Phobos Features
  • API Documentation
  • Release Notes
Resources
  • Akka.NET Documentation
  • Petabridge Blog
  • Akka.NET Support Plans
  • Akka.NET Consulting Services
  • Akka.NET Training
Connect
  • Petabridge Website
  • GitHub
  • Twitter
  • LinkedIn
  • YouTube
  • Contact Us
Privacy Policy
Built with ♥ by Petabridge