Skip to content

Commit

Permalink
Merge pull request #792 from nr-swilloughby/nrpgx5v2
Browse files Browse the repository at this point in the history
updates to nrpgx5
  • Loading branch information
nr-swilloughby committed Sep 29, 2023
2 parents b41f070 + c32cee3 commit 89f60a8
Show file tree
Hide file tree
Showing 56 changed files with 807 additions and 122 deletions.
42 changes: 27 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
## 3.25.1
* Corrects an error in the release process for 3.25.0.
### Support statement
## 3.26.0
### Added
* Extended implementation of the `nrpgx5` integration (now v1.2.0). This instruments Postgres database operations using the `jackc/pgx/v5` library, including the direct access mode of operation as opposed to requiring code to use the library compatibly with the standard `database/sql` library.

### Corrections
* See below for revised release notes for the 3.25.1 and the retracted 3.25.0 releases. We have clarified what was released at those versions; see also the revised notes for 3.22.0 and 3.22.1 for the same reason.

### Support statement
We use the latest version of the Go language. At minimum, you should be using no version of Go older than what is supported by the Go team themselves.

See the [Go agent EOL Policy](https://docs.newrelic.com/docs/apm/agents/go-agent/get-started/go-agent-eol-policy/) for details about supported versions of the Go agent and third-party components.


## 3.25.0
## 3.25.1
### Added
* Added Support for FastHTTP package
* Added newrelic.WrapHandleFuncFastHTTP() and newrelic.StartExternalSegmentFastHTTP() functions to instrument fasthttp context and create wrapped handlers. These functions work similarly to the existing ones for net/http
Expand All @@ -16,6 +19,15 @@
### Fixed
* Corrected a bug where the security agent failed to correctly parse the `NEW_RELIC_SECURITY_AGENT_ENABLED` environment variable.

### Support statement
We use the latest version of the Go language. At minimum, you should be using no version of Go older than what is supported by the Go team themselves.

See the [Go agent EOL Policy](https://docs.newrelic.com/docs/apm/agents/go-agent/get-started/go-agent-eol-policy/) for details about supported versions of the Go agent and third-party components.

## 3.25.0 (retracted)
This release was retracted due to an error in the release process which caused the wrong git commit to be tagged.
Since the erroneous `v3.25.0` tag was already visible publicly and may already have been picked up by the Go language infrastructure, we retracted the incorrect 3.25.0 version and released the changes intended for 3.25.0 as version 3.25.1, so users of the Go Agent library will reliably get the correct code.

### Support statement
We use the latest version of the Go language. At minimum, you should be using no version of Go older than what is supported by the Go team themselves (i.e., Go versions 1.19 and later are supported).
We recommend updating to the latest agent version as soon as it’s available. If you can’t upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
Expand Down Expand Up @@ -111,16 +123,6 @@ See the [Go agent EOL Policy](https://docs.newrelic.com/docs/apm/agents/go-agent


## 3.22.1
* Corrects an error in the release process for 3.22.0.

### Support statement

We use the latest version of the Go language. At minimum, you should be using no version of Go older than what is supported by the Go team themselves.

See the [Go agent EOL Policy](https://docs.newrelic.com/docs/apm/agents/go-agent/get-started/go-agent-eol-policy/) for details about supported versions of the Go agent and third-party components.

## 3.22.0

### Added
* New Apache Kafka integration nrsarama that instruments the Sarama library https://github.com/Shopify/sarama
* New logs in context integration logcontext-v2/nrzap that instruments the zap logging framework https://github.com/uber-go/zap
Expand All @@ -135,6 +137,16 @@ See the [Go agent EOL Policy](https://docs.newrelic.com/docs/apm/agents/go-agent
* Bumped gin package to v1.9.0 in the nrgin integration
* Bumped crypto package to v0.1.0 in the nrpgx integration
* Fixed integration tests in nrnats package not correctly showing code coverage
* Corrects an error in the release process for 3.22.0.

### Support statement

We use the latest version of the Go language. At minimum, you should be using no version of Go older than what is supported by the Go team themselves.

See the [Go agent EOL Policy](https://docs.newrelic.com/docs/apm/agents/go-agent/get-started/go-agent-eol-policy/) for details about supported versions of the Go agent and third-party components.

## 3.22.0 (retracted)
This release has been retracted due to an error in the release process which caused it to be incorrectly created. Instead, release 3.22.1 was issued with the changes intended for 3.22.0.

### Support statement

Expand Down
2 changes: 2 additions & 0 deletions v3/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ require (
google.golang.org/grpc v1.54.0
)


retract v3.22.0 // release process error corrected in v3.22.1

retract v3.25.0 // release process error corrected in v3.25.1
2 changes: 1 addition & 1 deletion v3/integrations/logcontext-v2/logWriter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/logWriter
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrwriter v1.0.0
)

Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/logcontext-v2/nrlogrus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrlogrus
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/sirupsen/logrus v1.8.1
)

Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/logcontext-v2/nrwriter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrwriter

go 1.19

require github.com/newrelic/go-agent/v3 v3.24.1
require github.com/newrelic/go-agent/v3 v3.26.0


replace github.com/newrelic/go-agent/v3 => ../../..
2 changes: 1 addition & 1 deletion v3/integrations/logcontext-v2/nrzap/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrzap
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
go.uber.org/zap v1.24.0
)

Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/logcontext-v2/nrzerolog/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrzerolog
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/rs/zerolog v1.26.1
)

Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/logcontext-v2/zerologWriter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/zerologWriter
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrwriter v1.0.0
github.com/rs/zerolog v1.27.0
)
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/logcontext/nrlogrusplugin/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext/nrlogrusplugin
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
// v1.4.0 is required for for the log.WithContext.
github.com/sirupsen/logrus v1.4.0
)
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrawssdk-v1/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ go 1.19
require (
// v1.15.0 is the first aws-sdk-go version with module support.
github.com/aws/aws-sdk-go v1.34.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrawssdk-v2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/lambda v1.24.5
github.com/aws/aws-sdk-go-v2/service/s3 v1.27.10
github.com/aws/smithy-go v1.13.3
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrb3/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/newrelic/go-agent/v3/integrations/nrb3

go 1.19

require github.com/newrelic/go-agent/v3 v3.24.1
require github.com/newrelic/go-agent/v3 v3.26.0


replace github.com/newrelic/go-agent/v3 => ../..
2 changes: 1 addition & 1 deletion v3/integrations/nrecho-v3/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
// v3.1.0 is the earliest v3 version of Echo that works with modules due
// to the github.com/rsc/letsencrypt import of v3.0.0.
github.com/labstack/echo v3.1.0+incompatible
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrecho-v4/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.19

require (
github.com/labstack/echo/v4 v4.9.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrelasticsearch-v7/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.19

require (
github.com/elastic/go-elasticsearch/v7 v7.17.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
3 changes: 2 additions & 1 deletion v3/integrations/nrfasthttp/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module github.com/newrelic/go-agent/v3/integrations/nrfasthttp
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.23.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/stretchr/testify v1.8.4
github.com/valyala/fasthttp v1.48.0
)
replace github.com/newrelic/go-agent/v3 => ../..
2 changes: 1 addition & 1 deletion v3/integrations/nrgin/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.19

require (
github.com/gin-gonic/gin v1.9.1
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrgorilla/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go 1.19
require (
// v1.7.0 is the earliest version of Gorilla using modules.
github.com/gorilla/mux v1.7.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrgraphgophers/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go 1.19
require (
// graphql-go has no tagged releases as of Jan 2020.
github.com/graph-gophers/graphql-go v1.3.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrgraphqlgo/example/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ go 1.19
require (
github.com/graphql-go/graphql v0.7.9
github.com/graphql-go/graphql-go-handler v0.2.3
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/newrelic/go-agent/v3/integrations/nrgraphqlgo v1.0.0
)
replace github.com/newrelic/go-agent/v3/integrations/nrgraphqlgo => ../
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrgraphqlgo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.19

require (
github.com/graphql-go/graphql v0.7.9
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrgrpc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
// protobuf v1.3.0 is the earliest version using modules, we use v1.3.1
// because all dependencies were removed in this version.
github.com/golang/protobuf v1.5.3
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/newrelic/go-agent/v3/integrations/nrsecurityagent v1.1.0
// v1.15.0 is the earliest version of grpc using modules.
google.golang.org/grpc v1.54.0
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrhttprouter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go 1.19
require (
// v1.3.0 is the earliest version of httprouter using modules.
github.com/julienschmidt/httprouter v1.3.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrlambda/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.19

require (
github.com/aws/aws-lambda-go v1.41.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrlogrus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/newrelic/go-agent/v3/integrations/nrlogrus
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
// v1.1.0 is required for the Logger.GetLevel method, and is the earliest
// version of logrus using modules.
github.com/sirupsen/logrus v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrlogxi/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go 1.19
require (
// 'v1', at commit aebf8a7d67ab, is the only logxi release.
github.com/mgutz/logxi v0.0.0-20161027140823-aebf8a7d67ab
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrmicro/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go 1.19
require (
github.com/golang/protobuf v1.5.3
github.com/micro/go-micro v1.8.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrmongo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/newrelic/go-agent/v3/integrations/nrmongo
go 1.19

require (
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
// mongo-driver does not support modules as of Nov 2019.
go.mongodb.org/mongo-driver v1.10.2
)
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrmssql/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.19

require (
github.com/microsoft/go-mssqldb v0.19.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrmysql/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
// v1.5.0 is the first mysql version to support gomod
github.com/go-sql-driver/mysql v1.6.0
// v3.3.0 includes the new location of ParseQuery
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)

replace github.com/newrelic/go-agent/v3 => ../..
2 changes: 1 addition & 1 deletion v3/integrations/nrnats/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go 1.19
require (
github.com/nats-io/nats-server v1.4.1
github.com/nats-io/nats.go v1.28.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrnats/test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ replace github.com/newrelic/go-agent/v3/integrations/nrnats v1.0.0 => ../
require (
github.com/nats-io/nats-server v1.4.1
github.com/nats-io/nats.go v1.17.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/newrelic/go-agent/v3/integrations/nrnats v1.0.0
)

Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrpgx/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3/integrations/nrpq [![GoDoc](https://godoc.org/github.com/newrelic/go-agent/v3/integrations/nrpgx?status.svg)](https://godoc.org/github.com/newrelic/go-agent/v3/integrations/nrpgx)
# v3/integrations/nrpgx [![GoDoc](https://godoc.org/github.com/newrelic/go-agent/v3/integrations/nrpgx?status.svg)](https://godoc.org/github.com/newrelic/go-agent/v3/integrations/nrpgx)

Package `nrpgx` instruments https://github.com/jackc/pgx/v4.

Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrpgx/example/sqlx/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module github.com/newrelic/go-agent/v3/integrations/nrpgx/example/sqlx
go 1.19
require (
github.com/jmoiron/sqlx v1.2.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
github.com/newrelic/go-agent/v3/integrations/nrpgx v0.0.0
)
replace github.com/newrelic/go-agent/v3/integrations/nrpgx => ../../
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrpgx/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/jackc/pgx v3.6.2+incompatible
github.com/jackc/pgx/v4 v4.13.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3 v3.26.0
)


Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrpgx5/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# v3/integrations/nrpgx5 [![GoDoc](https://godoc.org/github.com/newrelic/go-agent/v3/integrations/nrpgx5?status.svg)](https://godoc.org/github.com/newrelic/go-agent/v3/integrations/nrpgx5)

Package `nrpgx` instruments https://github.com/jackc/pgx/v5.
Package `nrpgx5` instruments https://github.com/jackc/pgx/v5.

```go
import "github.com/newrelic/go-agent/v3/integrations/nrpgx5"
Expand Down
Loading

0 comments on commit 89f60a8

Please sign in to comment.