Documentation forSolarWinds Observability SaaS

Go trace context in logs

Adding trace context to application logs provides the ability to correlate the log messages from a traced transaction, and if sampled, the log messages to the transaction trace detail. The Go library includes a custom slog LogHandler to easily add trace context to logged messages, and it supports manual trace context injection with LoggableTrace and related APIs.