Skip to content

Commit d251252

Browse files
authored
Go Agent Release v3.41.0 (#1093)
* feat: update changelog and version to 3.41.0 with new sampling options and increased test coverage * go mod cleanup * go mod cleanup * fix: const test error * Fix: non-constant format string in call to fmt.Printf
1 parent 1a5def4 commit d251252

File tree

65 files changed

+140
-150
lines changed

Some content is hidden

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

65 files changed

+140
-150
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## 3.41.0
2+
### Added
3+
* Added `DistributedTracer.Sampler` config options for controlling the sampling behavior for Inbound Requests for distributed traces
4+
* To configure the sampler, added `ConfigRemoteParentSampled(flag RemoteParentSamplingConfig)` and `ConfigRemoteParentNotSampled(flag RemoteParentSamplingConfig)` which handles sampling behavior based on what the remote parent has flagged
5+
* Flags added are `"always_on", "always_off", and "default"` which can be called using `RemoteParentSamplingConfig`
6+
* `Example: newrelic.ConfigRemoteParentSampled(newrelic.AlwaysOff)`
7+
* Added OOM Monitoring Tests
8+
* Increased Secure Agent Test Coverage
9+
### Fixed
10+
* Updated third-party library versions due to reported security or other supportability issues:
11+
* `github.com/gofiber/fiber/v2` from 2.52.7 to 2.52.9 in `nrfiber` integration
12+
* `golang.org/x/net` from 0.25.0 to 0.38.0 in `nrconnect` integration
13+
### Support statement
14+
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.
15+
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.
16+
117
## 3.40.1
218
### Fixed
319
* Reverted utilization.go back to v3.39.0 release due to deadlock bug

v3/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/newrelic/go-agent/v3
22

3-
go 1.22
3+
go 1.24
44

55
require (
66
google.golang.org/grpc v1.65.0

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

Lines changed: 2 additions & 2 deletions
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.22
3+
go 1.24
44

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

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

Lines changed: 2 additions & 2 deletions
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.22
3+
go 1.24
44

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrslog
22

3-
go 1.22
3+
go 1.24
44

5-
require github.com/newrelic/go-agent/v3 v3.40.1
5+
require github.com/newrelic/go-agent/v3 v3.41.0
66

77

88
replace github.com/newrelic/go-agent/v3 => ../../..
Lines changed: 2 additions & 2 deletions
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.22
3+
go 1.24
44

5-
require github.com/newrelic/go-agent/v3 v3.40.1
5+
require github.com/newrelic/go-agent/v3 v3.41.0
66

77

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

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

Lines changed: 2 additions & 2 deletions
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.22
3+
go 1.24
44

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

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

Lines changed: 2 additions & 2 deletions
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.22
3+
go 1.24
44

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

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

Lines changed: 2 additions & 2 deletions
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.22
3+
go 1.24
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.40.1
6+
github.com/newrelic/go-agent/v3 v3.41.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

Lines changed: 2 additions & 2 deletions
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.22
5+
go 1.24
66

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

0 commit comments

Comments
 (0)