Class MetricsLoggingOptions
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configuration options for metrics logging middleware.
public sealed class MetricsLoggingOptions
- Inheritance
-
MetricsLoggingOptions
- Inherited Members
- Extension Methods
Properties
BypassMetricsForTypes
Gets or sets message types that bypass metrics collection.
public string[]? BypassMetricsForTypes { get; set; }
Property Value
- string[]
The current BypassMetricsForTypes value.
Enabled
Gets or sets a value indicating whether metrics collection is enabled.
public bool Enabled { get; set; }
Property Value
- bool
Default is true.
IncludeMessageSizes
Gets or sets a value indicating whether to include message payload sizes in metrics.
public bool IncludeMessageSizes { get; set; }
Property Value
- bool
Default is true.
LogProcessingDetails
Gets or sets a value indicating whether to log detailed processing information.
public bool LogProcessingDetails { get; set; }
Property Value
- bool
Default is true.
RecordCustomMetrics
Gets or sets a value indicating whether to record custom metrics.
public bool RecordCustomMetrics { get; set; }
Property Value
- bool
Default is true.
RecordOpenTelemetryMetrics
Gets or sets a value indicating whether to record OpenTelemetry metrics.
public bool RecordOpenTelemetryMetrics { get; set; }
Property Value
- bool
Default is true.
SampleRate
Gets or sets the sample rate for detailed metrics (0.0 to 1.0).
public double SampleRate { get; set; }
Property Value
- double
Default is 1.0 (sample all messages).
SlowOperationThreshold
Gets or sets the minimum duration threshold for logging slow operations.
public TimeSpan SlowOperationThreshold { get; set; }
Property Value
- TimeSpan
Default is 1 second.