Show / Hide Table of Contents

Interface ITraceFilter

Each ActorSystem can implement exactly one of these to control the decision-making around which traces to include and which ones to exclude.

When this type is configured, it will replace all of the IFilterRules that have been previously defined.

Namespace: Phobos.Actor.Configuration
Assembly: Phobos.Actor.dll
Syntax
public interface ITraceFilter

Methods

ShouldTraceMessage(object, bool)

Evaluates a message processed by an actor and determines whether or not to include it in the current or a new trace.

Declaration
bool ShouldTraceMessage(object message, bool alreadyInTrace)
Parameters
Type Name Description
object message

The message currently being processed by an actor.

bool alreadyInTrace

Whether or not this message is already part of an active trace.

Returns
Type Description
bool

true if we are going to trace the message, false otherwise.

Remarks

Should return true unless you are explicitly trying to filter a given message out of your trace.

See Also

FilterDecision
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