log/slog
Package slog provides structured logging, in which log records include a message, a severity level, and various other attributes expressed as key-value pairs.
Wrap slog Handlers
Call to
slog.New
Replace the expression using the template:
// Using the following synthetic imports:
import (
slogtrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/log/slog"
)
{{ .AST.Fun }}(slogtrace.WrapHandler({{ index .AST.Args 0 }}))