An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.9% on proxy.golang.org
Top 2.5% dependent packages on proxy.golang.org
Top 1.5% dependent repos on proxy.golang.org
Top 1.7% forks on proxy.golang.org
Top 1.5% docker downloads on proxy.golang.org

proxy.golang.org : github.com/newrelic/go-agent/v3/integrations/nrpgx

Package nrpgx instruments https://github.com/jackc/pgx/v4. Use this package to instrument your PostgreSQL calls using the pgx library. USING WITH PGX AS A DATABASE/SQL DRIVER The pgx library may be used as a database/sql driver rather than making direct calls into pgx itself. In this scenario, just use the nrpgx integration in place of the pgx driver. In other words, if your code without New Relic's agent looks like this: Then change the side-effect import to this package, and open "nrpgx" instead: Next, provide a context containing a newrelic.Transaction to all exec and query methods on sql.DB, sql.Conn, and sql.Tx. This requires using the context methods ExecContext, QueryContext, and QueryRowContext in place of Exec, Query, and QueryRow respectively. For example, instead of the following: Do this: A working example is shown here: https://github.com/newrelic/go-agent/tree/master/v3/integrations/nrpgx/example/sql_compat/main.go USING WITH DIRECT PGX CALLS WITHOUT DATABASE/SQL This mode of operation is not supported by the nrpgx integration at this time.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/newrelic/go-agent/v3/integrations/nrpgx
License: Apache-2.0
Latest release: about 1 year ago
First release: over 3 years ago
Namespace: github.com/newrelic/go-agent/v3/integrations
Dependent packages: 5
Dependent repositories: 12
Stars: 694 on GitHub
Forks: 282 on GitHub
Docker dependents: 1
Docker downloads: 132
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago

    Loading...
    Readme
    Loading...