Enable OTEL (OpenTelemetry) tracing in logs
mainTo include span_id and trace_id in your log attributes, use sloggin.NewWithConfig with the corresponding boolean flags set to true in the Config object.
logger := slog.New(slog.NewTextHandler(os.Stdout, nil))
config := sloggin.Config{
WithSpanID: true,
WithTraceID: true,
}
router := gin.New()
router.Use(sloggin.NewWithConfig(logger, config))