contrib/log/slog

Those integration are enabled by having the following import in the project’s orchestrion.tool.go file:

import (
	_ "github.com/DataDog/orchestrion"

	_ "gopkg.in/DataDog/dd-trace-go.v1/contrib/log/slog" // integration
	//...
)

Package slog provides structured logging, in which log records include a message, a severity level, and various other attributes expressed as key-value pairs.

New

Join Point
Call to slog.New
Advice
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 }}))