import (
"time"
"github.com/jmoiron/sqlx"
dbprof "github.com/maruTA-bis5/nr-db-stats-profiler"
"github.com/newrelic/go-agent/newrelic"
)
var db *sqlx.DB
var app *newrelic.Application
func Start() {
dbprof.EnableDBStatsEventRecord(db, app, 10*time.Second)
}
MIT
Takayuki Maruyama (@maruTA-bis5)