Skip to content

Commit 2003267

Browse files
Merge pull request #1011 from newrelic/develop
Release 3.38.0
2 parents c081f78 + c37b185 commit 2003267

File tree

68 files changed

+647
-59
lines changed

Some content is hidden

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

68 files changed

+647
-59
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
- dirs: v3/integrations/nrmssql
7070
- dirs: v3/integrations/nropenai
7171
- dirs: v3/integrations/nrslog
72+
- dirs: v3/integrations/nrgochi
73+
7274
steps:
7375
- name: Checkout Code
7476
uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 3.38.0
2+
### Added
3+
* Added new integration nrgochi v1.0.0 for support for go-chi library
4+
* Added IsEnded() method for the Transaction type. Allowing for a straightforward approach to checking if a transaction has ended
5+
* Community Member @frknikiz contributed to this solution
6+
7+
8+
### Fixed
9+
* Added caveat to API docs about local log decoration in zap integration
10+
11+
### Support statement
12+
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.
13+
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.
14+
115
## 3.37.0
216
### Enhanced
317
- 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:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/logWriter
33
go 1.22
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.37.0
6+
github.com/newrelic/go-agent/v3 v3.38.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrlogrus
33
go 1.22
44

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

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

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

33
go 1.22
44

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

77

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrwriter
22

33
go 1.22
44

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

77

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrzap
33
go 1.22
44

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

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ var (
124124
// Errors will be returned if the zapcore object is nil, or if the application is nil. It is up to the user to decide
125125
// how to handle the case where the newrelic.Application is nil.
126126
// In the case that the newrelic.Application is nil, a valid NewRelicZapCore object will still be returned.
127+
//
128+
// Please note that, while enriched context is added to log data forwarded to New Relic telemetry,
129+
// it is not added to the local log data itself. This is due to the specific way zap logs are
130+
// efficiently integrated into the New Relic agent logs in context. Local log decoration for zap
131+
// logs requires additional custom code.
127132
func WrapBackgroundCore(core zapcore.Core, app *newrelic.Application) (*NewRelicZapCore, error) {
128133
if core == nil {
129134
return nil, ErrNilZapcore
@@ -148,6 +153,11 @@ func WrapBackgroundCore(core zapcore.Core, app *newrelic.Application) (*NewRelic
148153
// Errors will be returned if the zapcore object is nil, or if the application is nil. It is up to the user to decide
149154
// how to handle the case where the newrelic.Transaction is nil.
150155
// In the case that the newrelic.Application is nil, a valid NewRelicZapCore object will still be returned.
156+
//
157+
// Please note that, while enriched context is added to log data forwarded to New Relic telemetry,
158+
// it is not added to the local log data itself. This is due to the specific way zap logs are
159+
// efficiently integrated into the New Relic agent logs in context. Local log decoration for zap
160+
// logs requires additional custom code.
151161
func WrapTransactionCore(core zapcore.Core, txn *newrelic.Transaction) (zapcore.Core, error) {
152162
if core == nil {
153163
return nil, ErrNilZapcore

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/nrzerolog
33
go 1.22
44

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext-v2/zerologWriter
33
go 1.22
44

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

0 commit comments

Comments
 (0)