Table of Contents

Class TrellisMediatorTelemetryOptions

Namespace
Trellis.Mediator
Assembly
Trellis.Mediator.dll

Operator-tunable redaction settings for the Trellis mediator pipeline's logging and tracing behaviors. Resolved from DI; if not registered, the behaviors fall back to the safe-by-default values exposed by this type's parameterless constructor.

public sealed class TrellisMediatorTelemetryOptions
Inheritance
TrellisMediatorTelemetryOptions
Inherited Members
Extension Methods

Remarks

LoggingBehavior<TMessage, TResponse> and TracingBehavior<TMessage, TResponse> emit the failed-result's Code and stable type name unconditionally — those values are operator-defined identifiers with no PII risk. The richer Detail string, by contrast, is frequently composed from user input or domain payloads (e.g. an order id, an email address, a free-text validation message) and must not leak into telemetry pipelines, log aggregation, or distributed traces by default.

Set IncludeErrorDetail to true in development or in environments where you have explicitly verified that no PII can flow through any Error instance.

Properties

IncludeErrorDetail

When true, the logging and tracing behaviors include Detail in their emitted message / status description. Defaults to false (Detail is redacted; only Code and the stable type name are emitted).

public bool IncludeErrorDetail { get; set; }

Property Value

bool