Logging With Context
Learn about logging and its uses associated with OpenTelemetry in Go.
Logging is probably the most familiar form of telemetry. We probably started logging in the first program we ever authored when we printed Hello World! to STDOUT
. Logging is the most natural first step in providing some data about the internal state of an application to an observer. Think about how many times we have added a print statement to our application to determine the value of a variable. We were logging. Printing simple log statements such as Hello World! can be helpful for beginners, but it does not provide the critical data we require to operate complex systems.
Get hands-on with 1400+ tech skills courses.