Training
Module
Implement error handling and logging in Go - Training
Understand how to handle errors and log helpful information in your Go programs.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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. |
Training
Module
Implement error handling and logging in Go - Training
Understand how to handle errors and log helpful information in your Go programs.