Documentation ¶
Index ¶
Constants ¶
View Source
const DebugReportMetadata = "trace-debug-report"
DebugReportMetadata is a key in metadata holding debug information about the error - stack traces and original error
Variables ¶
This section is empty.
Functions ¶
func DecodeDebugInfo ¶
DecodeDebugInfo decodes debug information about error from the metadata and returns error with enriched metadata about it
func FromGRPC ¶
FromGRPC converts error from GRPC error back to trace.Error Debug information will be retrieved from the metadata if specified in args
func Send ¶
Send is a high level function that: * converts error to GRPC error * attaches debug metadata to existing metadata if possible * sends the header to GRPC
func SetDebugInfo ¶
SetDebugInfo adds debug metadata about error (traces, original error) to request metadata as encoded property
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.