dbprof

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 3 Imported by: 0

README

New Relic DB Stats Profiler

Usage

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)
}

License

MIT

Author

Takayuki Maruyama (@maruTA-bis5)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableDBStatsEventRecord

func EnableDBStatsEventRecord(db *sqlx.DB, app *newrelic.Application, period time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL