apm-agent-go: github.com/elastic/apm-agent-go/module/apmgopg Index | Files

package apmgopg

import "github.com/elastic/apm-agent-go/module/apmgopg"

Package apmgopg provides wrappers for tracing go-pg operations.


Package Files

doc.go hook.go

func Instrument Uses

func Instrument(db *pg.DB) error

Instrument modifies db such that operations are hooked and reported as spans to Elastic APM if they occur within the context of a captured transaction.

If Instrument cannot instrument db, then an error will be returned.

Package apmgopg imports 6 packages (graph). Updated 2020-08-04. Refresh now. Tools for package owners.