Class TracingSettings
Used to define all of the settings for tracing.
Inheritance
System.Object
TracingSettings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Phobos.Actor.dll
Syntax
public sealed class TracingSettings
Constructors
TracingSettings(Config)
Declaration
public TracingSettings(Config config)
Parameters
Type |
Name |
Description |
Config |
config |
|
TracingSettings(TraceFilteringSettings, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Declaration
public TracingSettings(TraceFilteringSettings filteringSettings, bool traceUserActors = true, bool traceSystemActors = false, bool traceActorLifecycle = true, bool appendLogsToTrace = true, bool traceAkkaPersistence = true, bool createTraceUponReceive = true, bool logMessageEvents = true, bool traceAsk = true)
Parameters
Type |
Name |
Description |
TraceFilteringSettings |
filteringSettings |
|
System.Boolean |
traceUserActors |
|
System.Boolean |
traceSystemActors |
|
System.Boolean |
traceActorLifecycle |
|
System.Boolean |
appendLogsToTrace |
|
System.Boolean |
traceAkkaPersistence |
|
System.Boolean |
createTraceUponReceive |
|
System.Boolean |
logMessageEvents |
|
System.Boolean |
traceAsk |
|
Fields
Default
Declaration
public static readonly TracingSettings Default
Field Value
Properties
AppendLogsToTrace
This setting determines whether or not we're going to automatically add all
logs generated by the ILoggingAdapter into Phobos traces.
Declaration
public bool AppendLogsToTrace { get; }
Property Value
Type |
Description |
System.Boolean |
|
CreateTraceUponReceive
Set to true
by default.
Creates message-processing spans automatically when tracing is enabled.
When this setting is disabled users will be able to manually create traces
from SpanContexts received during tracing and traces will still be propagated.
This setting, when set to false
and when tracing is disabled will also
prevent UsableContext from being automatically propagated.
Declaration
public bool CreateTraceUponReceive { get; }
Property Value
Type |
Description |
System.Boolean |
|
FilteringSettings
Settings which determine how we do or don't filter out
messages used to start or stop traces.
Declaration
public TraceFilteringSettings FilteringSettings { get; }
Property Value
LogMessageEvents
In Phobos 2.0 we introduced latency tracking which includes logging two discrete events
on all automatically created Phobos spans:
- "waiting" - created when the message is first Tell(Object, IActorRef)
- "message" - created when the message is first processed by the actor and
contains the messages' content.
Turning this setting to "off" disables the productions of these events on all
akka.msg.recv
spans created by Phobos.
Declaration
public bool LogMessageEvents { get; }
Property Value
Type |
Description |
System.Boolean |
|
TraceActorLifecycle
When true
, traces PreStart / PostRestart activity for actors
that have tracing enabled.
Declaration
public bool TraceActorLifecycle { get; }
Property Value
Type |
Description |
System.Boolean |
|
TraceAkkaPersistence
When set to true
, the default, this will enable Akka.Persistence journals
and snapshot stores to be traced.
Declaration
public bool TraceAkkaPersistence { get; }
Property Value
Type |
Description |
System.Boolean |
|
TraceAllSystemActors
When true
, all /system actors will be monitored automatically.
Declaration
public bool TraceAllSystemActors { get; }
Property Value
Type |
Description |
System.Boolean |
|
TraceAllUserActors
When true
, all /user actors will be monitored automatically.
Declaration
public bool TraceAllUserActors { get; }
Property Value
Type |
Description |
System.Boolean |
|
TraceAsk
Enables tracing of Ask{T}
operations. Enabled by default.
Declaration
public bool TraceAsk { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
WithActorLifecycleTracing(Boolean)
Declaration
public TracingSettings WithActorLifecycleTracing(bool traceActorLifecycle)
Parameters
Type |
Name |
Description |
System.Boolean |
traceActorLifecycle |
|
Returns
WithAkkaPersistenceTracing(Boolean)
Declaration
public TracingSettings WithAkkaPersistenceTracing(bool traceAkkaPersistence)
Parameters
Type |
Name |
Description |
System.Boolean |
traceAkkaPersistence |
|
Returns
WithAppendLogsToTrace(Boolean)
Declaration
public TracingSettings WithAppendLogsToTrace(bool appendLogsToTrace)
Parameters
Type |
Name |
Description |
System.Boolean |
appendLogsToTrace |
|
Returns
WithAskTracing(Boolean)
Declaration
public TracingSettings WithAskTracing(bool enableAskTrace)
Parameters
Type |
Name |
Description |
System.Boolean |
enableAskTrace |
|
Returns
WithCreateTraceUponReceive(Boolean)
Declaration
public TracingSettings WithCreateTraceUponReceive(bool createTraceUponReceive)
Parameters
Type |
Name |
Description |
System.Boolean |
createTraceUponReceive |
|
Returns
WithFilteringSettings(TraceFilteringSettings)
Declaration
public TracingSettings WithFilteringSettings(TraceFilteringSettings filtering)
Parameters
Returns
WithLogMessageEvents(Boolean)
Declaration
public TracingSettings WithLogMessageEvents(bool logMessageEvents)
Parameters
Type |
Name |
Description |
System.Boolean |
logMessageEvents |
|
Returns
WithTraceSystemActors(Boolean)
Declaration
public TracingSettings WithTraceSystemActors(bool traceSystemActors)
Parameters
Type |
Name |
Description |
System.Boolean |
traceSystemActors |
|
Returns
WithTraceUserActors(Boolean)
Declaration
public TracingSettings WithTraceUserActors(bool traceUserActors)
Parameters
Type |
Name |
Description |
System.Boolean |
traceUserActors |
|
Returns