Error handling functions

These functions can be used to trace or construct errors.

Name Description
Diagnostics.ActivityId Returns an opaque identifier for the currently-running evaluation.
Diagnostics.CorrelationId Returns an opaque identifier to correlate incoming requests with outgoing ones.
Diagnostics.Trace Writes a trace message, if tracing is enabled, and returns value.
Error.Record Returns an error record from the provided text values for reason, message, detail, and error code.