Skip to content

Commit 7043c7a

Browse files
Merge pull request #1003 from nr-swilloughby/release_3_37_0
Release 3.37.0 (version set and final changes)
2 parents 9e8e9fb + 2f2a7fe commit 7043c7a

File tree

60 files changed

+143
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+143
-124
lines changed

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
## 3.37.0
2+
### Enhanced
3+
- Implemented a new approach to integrating New Relic with SLOG that is more lightweight, out of the way, and collects richer data. These changes have been constructed to be completely backwards-compatible with v1 of nrslog. Changes include:
4+
- Wrapping `slog.Handler` objects with errors to allow users to handle invalid use cases
5+
- A complete rework of log enrichment so that New Relic linking metadata does not invalidate JSON, BSON, or YAML scanners. This new approach will instead inject the linking metadata as a key-value pair.
6+
- Complete support for `With()`, `WithGroup()`, and attributes for automatic instrumentation.
7+
- Performance operations.
8+
- Robust testing (close to 90% coverage).
9+
- **This updates logcontext-v2/nrslog to v1.4.0.**
10+
- Now custom application tags (labels) may be added to all forwarded log events.
11+
- Enabled if `ConfigAppLogForwardingLabelsEnabled(true)` or `NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_ENABLED=TRUE`
12+
- May exclude labels named in `ConfigAppLogForwardingLabelsExclude("label1","label2",...)` or `NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_EXCLUDE="label1,label2,..."`
13+
- Labels are defined via `ConfigLabels(...)` or `NEW_RELIC_LABELS`
14+
- Added memory allocation limit detection/response mechanism to facilitate calling custom functions to perform application-specific resource management functionality, report custom metrics or events, or take other appropriate actions, in response to rising heap memory size.
15+
16+
### Fixed
17+
- Added protection around transaction methods to gracefully return when the transaction object is `nil`.
18+
19+
### Support statement
20+
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.
21+
See the [Go agent EOL Policy](/docs/apm/agents/go-agent/get-started/go-agent-eol-policy) for details about supported versions of the Go agent and third-party components.
22+
23+
124
## 3.36.0
225
### Enhanced
326
- Internal improvements to securityagent integration to better support trace handling and other support for security analysis of applications under test, now v1.3.4; affects the following other integrations:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Go is a compiled language, and doesn’t use a virtual machine. This means that
1313

1414
### Compatibility and Requirements
1515

16-
For the latest version of the agent, Go 1.18+ is required.
16+
For the latest version of the agent, Go 1.22+ is required.
1717

1818
Linux, OS X, and Windows (Vista, Server 2008 and later) are supported.
1919

v3/go.mod

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
module github.com/newrelic/go-agent/v3
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
google.golang.org/grpc v1.65.0
77
google.golang.org/protobuf v1.34.2
88
)
99

10+
1011
retract v3.22.0 // release process error corrected in v3.22.1
1112

1213
retract v3.25.0 // release process error corrected in v3.25.1

v3/integrations/logcontext-v2/logWriter/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/logWriter
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrwriter v1.0.0
88
)
99

v3/integrations/logcontext-v2/nrlogrus/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrlogrus
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/sirupsen/logrus v1.8.1
88
)
99

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrslog
22

3-
go 1.21
3+
go 1.22
4+
5+
require github.com/newrelic/go-agent/v3 v3.37.0
46

5-
require github.com/newrelic/go-agent/v3 v3.36.0
67

78
replace github.com/newrelic/go-agent/v3 => ../../..
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrwriter
22

3-
go 1.21
3+
go 1.22
44

5-
require github.com/newrelic/go-agent/v3 v3.36.0
5+
require github.com/newrelic/go-agent/v3 v3.37.0
66

77

88
replace github.com/newrelic/go-agent/v3 => ../../..

v3/integrations/logcontext-v2/nrzap/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrzap
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
go.uber.org/zap v1.24.0
88
)
99

v3/integrations/logcontext-v2/nrzerolog/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrzerolog
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/rs/zerolog v1.26.1
88
)
99

v3/integrations/logcontext-v2/zerologWriter/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/zerologWriter
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrwriter v1.0.0
88
github.com/rs/zerolog v1.27.0
99
)

v3/integrations/logcontext/nrlogrusplugin/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext/nrlogrusplugin
22

33
// As of Dec 2019, the logrus go.mod file uses 1.13:
44
// https://github.com/sirupsen/logrus/blob/master/go.mod
5-
go 1.21
5+
go 1.22
66

77
require (
8-
github.com/newrelic/go-agent/v3 v3.36.0
8+
github.com/newrelic/go-agent/v3 v3.37.0
99
// v1.4.0 is required for for the log.WithContext.
1010
github.com/sirupsen/logrus v1.4.0
1111
)

v3/integrations/nramqp/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/newrelic/go-agent/v3/integrations/nramqp
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/rabbitmq/amqp091-go v1.9.0
88
)
99
replace github.com/newrelic/go-agent/v3 => ../..

v3/integrations/nrawsbedrock/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module github.com/newrelic/go-agent/v3/integrations/nrawsbedrock
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.26.0
77
github.com/aws/aws-sdk-go-v2/config v1.27.4
88
github.com/aws/aws-sdk-go-v2/service/bedrock v1.7.3
99
github.com/aws/aws-sdk-go-v2/service/bedrockruntime v1.7.1
1010
github.com/google/uuid v1.6.0
11-
github.com/newrelic/go-agent/v3 v3.36.0
11+
github.com/newrelic/go-agent/v3 v3.37.0
1212
)
1313

1414

v3/integrations/nrawssdk-v1/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ module github.com/newrelic/go-agent/v3/integrations/nrawssdk-v1
33
// As of Dec 2019, aws-sdk-go's go.mod does not specify a Go version. 1.6 is
44
// the earliest version of Go tested by aws-sdk-go's CI:
55
// https://github.com/aws/aws-sdk-go/blob/master/.travis.yml
6-
go 1.21
6+
go 1.22
77

88
require (
99
// v1.15.0 is the first aws-sdk-go version with module support.
1010
github.com/aws/aws-sdk-go v1.34.0
11-
github.com/newrelic/go-agent/v3 v3.36.0
11+
github.com/newrelic/go-agent/v3 v3.37.0
1212
)
1313

1414

v3/integrations/nrawssdk-v2/go.mod

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ module github.com/newrelic/go-agent/v3/integrations/nrawssdk-v2
22

33
// As of May 2021, the aws-sdk-go-v2 go.mod file uses 1.15:
44
// https://github.com/aws/aws-sdk-go-v2/blob/master/go.mod
5-
go 1.21
6-
7-
toolchain go1.21.0
5+
go 1.22
86

97
require (
108
github.com/aws/aws-sdk-go-v2 v1.30.4
@@ -14,7 +12,7 @@ require (
1412
github.com/aws/aws-sdk-go-v2/service/s3 v1.61.0
1513
github.com/aws/aws-sdk-go-v2/service/sqs v1.34.6
1614
github.com/aws/smithy-go v1.20.4
17-
github.com/newrelic/go-agent/v3 v3.36.0
15+
github.com/newrelic/go-agent/v3 v3.37.0
1816
)
1917

2018

v3/integrations/nrb3/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/newrelic/go-agent/v3/integrations/nrb3
22

3-
go 1.21
3+
go 1.22
44

5-
require github.com/newrelic/go-agent/v3 v3.36.0
5+
require github.com/newrelic/go-agent/v3 v3.37.0
66

77

88
replace github.com/newrelic/go-agent/v3 => ../..

v3/integrations/nrecho-v3/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ module github.com/newrelic/go-agent/v3/integrations/nrecho-v3
22

33
// 1.7 is the earliest version of Go tested by v3.1.0:
44
// https://github.com/labstack/echo/blob/v3.1.0/.travis.yml
5-
go 1.21
5+
go 1.22
66

77
require (
88
// v3.1.0 is the earliest v3 version of Echo that works with modules due
99
// to the github.com/rsc/letsencrypt import of v3.0.0.
1010
github.com/labstack/echo v3.1.0+incompatible
11-
github.com/newrelic/go-agent/v3 v3.36.0
11+
github.com/newrelic/go-agent/v3 v3.37.0
1212
)
1313

1414

v3/integrations/nrecho-v4/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module github.com/newrelic/go-agent/v3/integrations/nrecho-v4
22

33
// As of Jun 2022, the echo go.mod file uses 1.17:
44
// https://github.com/labstack/echo/blob/master/go.mod
5-
go 1.21
5+
go 1.22
66

77
require (
88
github.com/labstack/echo/v4 v4.9.0
9-
github.com/newrelic/go-agent/v3 v3.36.0
9+
github.com/newrelic/go-agent/v3 v3.37.0
1010
)
1111

1212

v3/integrations/nrelasticsearch-v7/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module github.com/newrelic/go-agent/v3/integrations/nrelasticsearch-v7
22

33
// As of Jan 2020, the v7 elasticsearch go.mod uses 1.11:
44
// https://github.com/elastic/go-elasticsearch/blob/7.x/go.mod
5-
go 1.21
5+
go 1.22
66

77
require (
88
github.com/elastic/go-elasticsearch/v7 v7.17.0
9-
github.com/newrelic/go-agent/v3 v3.36.0
9+
github.com/newrelic/go-agent/v3 v3.37.0
1010
)
1111

1212

v3/integrations/nrfasthttp/examples/client-fasthttp/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module client-example
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/newrelic/go-agent/v3/integrations/nrfasthttp v1.0.0
88
github.com/valyala/fasthttp v1.49.0
99
)

v3/integrations/nrfasthttp/examples/server-fasthttp/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module server-example
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/newrelic/go-agent/v3/integrations/nrfasthttp v1.0.0
88
github.com/valyala/fasthttp v1.49.0
99
)

v3/integrations/nrfasthttp/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/newrelic/go-agent/v3/integrations/nrfasthttp
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.36.0
6+
github.com/newrelic/go-agent/v3 v3.37.0
77
github.com/valyala/fasthttp v1.49.0
88
)
99

v3/integrations/nrgin/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module github.com/newrelic/go-agent/v3/integrations/nrgin
22

33
// As of Dec 2019, the gin go.mod file uses 1.12:
44
// https://github.com/gin-gonic/gin/blob/master/go.mod
5-
go 1.21
5+
go 1.22
66

77
require (
88
github.com/gin-gonic/gin v1.9.1
9-
github.com/newrelic/go-agent/v3 v3.36.0
9+
github.com/newrelic/go-agent/v3 v3.37.0
1010
)
1111

1212

v3/integrations/nrgorilla/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ module github.com/newrelic/go-agent/v3/integrations/nrgorilla
22

33
// As of Dec 2019, the gorilla/mux go.mod file uses 1.12:
44
// https://github.com/gorilla/mux/blob/master/go.mod
5-
go 1.21
5+
go 1.22
66

77
require (
88
// v1.7.0 is the earliest version of Gorilla using modules.
99
github.com/gorilla/mux v1.7.0
10-
github.com/newrelic/go-agent/v3 v3.36.0
10+
github.com/newrelic/go-agent/v3 v3.37.0
1111
)
1212

1313

v3/integrations/nrgraphgophers/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ module github.com/newrelic/go-agent/v3/integrations/nrgraphgophers
22

33
// As of Jan 2020, the graphql-go go.mod file uses 1.13:
44
// https://github.com/graph-gophers/graphql-go/blob/master/go.mod
5-
go 1.21
5+
go 1.22
66

77
require (
88
// graphql-go has no tagged releases as of Jan 2020.
99
github.com/graph-gophers/graphql-go v1.3.0
10-
github.com/newrelic/go-agent/v3 v3.36.0
10+
github.com/newrelic/go-agent/v3 v3.37.0
1111
)
1212

1313

v3/integrations/nrgraphqlgo/example/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/newrelic/go-agent/v3/integrations/nrgraphqlgo/example
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/graphql-go/graphql v0.8.1
77
github.com/graphql-go/graphql-go-handler v0.2.3
8-
github.com/newrelic/go-agent/v3 v3.36.0
8+
github.com/newrelic/go-agent/v3 v3.37.0
99
github.com/newrelic/go-agent/v3/integrations/nrgraphqlgo v1.0.0
1010
)
1111

v3/integrations/nrgraphqlgo/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module github.com/newrelic/go-agent/v3/integrations/nrgraphqlgo
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/graphql-go/graphql v0.8.1
7-
github.com/newrelic/go-agent/v3 v3.36.0
7+
github.com/newrelic/go-agent/v3 v3.37.0
88
)
99

1010

v3/integrations/nrgrpc/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module github.com/newrelic/go-agent/v3/integrations/nrgrpc
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
// protobuf v1.3.0 is the earliest version using modules, we use v1.3.1
77
// because all dependencies were removed in this version.
88
github.com/golang/protobuf v1.5.4
9-
github.com/newrelic/go-agent/v3 v3.36.0
9+
github.com/newrelic/go-agent/v3 v3.37.0
1010
github.com/newrelic/go-agent/v3/integrations/nrsecurityagent v1.1.0
1111
// v1.15.0 is the earliest version of grpc using modules.
1212
google.golang.org/grpc v1.65.0

0 commit comments

Comments
 (0)