Class ProtoTraceValueFormatter

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Serializes a value into compact, cycle-safe, redacted JSON for trace attributes. Shared so every integration renders diagnostic values the same way.

public static class ProtoTraceValueFormatter
Inheritance
ProtoTraceValueFormatter
Inherited Members

Methods

Serialize(object?)

public static string? Serialize(object? value)

Parameters

value object

Returns

string

Serialize(object?, IReadOnlyCollection<string>?)

Serializes a value into compact, cycle-safe, redacted JSON for trace attributes. Names in additionalSensitiveNames redact like the defaults; the names travel with the host, so pass the run's configured ones and leave this empty where no host is in reach.

public static string? Serialize(object? value, IReadOnlyCollection<string>? additionalSensitiveNames)

Parameters

value object
additionalSensitiveNames IReadOnlyCollection<string>

Returns

string