Class ProtoTraceContent
Caps long payloads before they become trace sections, so a trace stays a trace and not a dump. JSON is pretty-printed before it is capped; anything else is capped as written.
public static class ProtoTraceContent
- Inheritance
-
ProtoTraceContent
- Inherited Members
Methods
Preview(string?, int)
Pretty-prints content when it is JSON and truncates it when it exceeds
maxLength, marking the cut the way ProtoTest's request preview does.
public static string? Preview(string? content, int maxLength = 8000)