Class ProtoAttachmentCapture
Adds a captured payload as an attachment without ever failing the operation: a failure is traced as a failed event with the operation as its parent, the rule gRPC, messaging and web diagnostics share.
public static class ProtoAttachmentCapture
- Inheritance
-
ProtoAttachmentCapture
- Inherited Members
Methods
TryAdd(ProtoExecutionContext, ProtoTraceOperation, ProtoAttachmentFailure, string, Func<string>, string, string?)
public static void TryAdd(ProtoExecutionContext context, ProtoTraceOperation operation, ProtoAttachmentFailure failure, string attachmentName, Func<string> content, string mediaType, string? description = null)
Parameters
contextProtoExecutionContextoperationProtoTraceOperationfailureProtoAttachmentFailureattachmentNamestringcontentFunc<string>mediaTypestringdescriptionstring