Class ProtoTraceValueFormatter
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
valueobject
Returns
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
valueobjectadditionalSensitiveNamesIReadOnlyCollection<string>