Class JsonDiagnosticOptions

Namespace
ProtoTest.Json
Assembly
ProtoTest.Json.dll

Options for diagnostic rendering: what is redacted, and how much of a body survives into the trace and the reports.

public class JsonDiagnosticOptions
Inheritance
JsonDiagnosticOptions
Derived
Inherited Members
Extension Methods

Properties

MaxDiagnosticBodyLength

The longest body a diagnostic keeps. Beyond it the body is truncated, so one oversized response cannot dominate the artifact.

public int MaxDiagnosticBodyLength { get; set; }

Property Value

int

RedactSensitiveData

Whether sensitive property values are redacted before a body is written to evidence. On by default, because a diagnostic body is a copy of live traffic.

public bool RedactSensitiveData { get; set; }

Property Value

bool

SensitiveJsonProperties

The property names redacted by default. Shared with the trace's state value formatter through ProtoRedactionDefaults, so diagnostics and state cannot disagree about what is sensitive.

public List<string> SensitiveJsonProperties { get; set; }

Property Value

List<string>