Skip to content

Commit 20541a9

Browse files
Merge pull request #840 from newrelic/develop
Release 3.29.0
2 parents 0100f62 + 535eab4 commit 20541a9

File tree

68 files changed

+460
-126
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

+460
-126
lines changed

CHANGELOG.md

+25-13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 3.29.0
2+
### Added
3+
* Security agent integration `nrsecurityagent` now reports security configuraiton information along with the overall Go Agent configuration values. (Updates `nrsecurityagent` to v1.2.0.)
4+
* Code-Level Metrics collection efficiency enhancement allows user callback function for as-needed (and just-in-time) evaluation of custom code locations rather than up-front location overrides, via the `WithCodeLocationCallback` CLM option. Deprecates `WithCodeLocation` option (although the latter function is still supported for compatibility with existing code).
5+
* Added extended synthetics support for new `X-Newrelic-Synthetics-Info` HTTP headers.
6+
* Documentation fixes.
7+
* Removed deprecated `ROADMAP.md` file.
8+
9+
### Support statement
10+
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.
11+
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.
12+
113
## 3.28.1
214
### Added
315
Added Supportability Metrics to `nrfasthttp` (brings `nrfasthttp` version to v1.0.1).
@@ -1128,7 +1140,7 @@ feedback that you would like to pass along, please open up an issue
11281140
[here](https://github.com/newrelic/go-agent/issues/new) and be sure to include
11291141
the label `3.0`.
11301142
* For normal (non-3.0) issues/questions we request that you report them via
1131-
our [support site](http://support.newrelic.com/) or our
1143+
our [support site](https://support.newrelic.com/) or our
11321144
[community forum](https://discuss.newrelic.com). Please only report
11331145
questions related to the 3.0 pre-release directly via GitHub.
11341146

@@ -1162,7 +1174,7 @@ include:
11621174
### Bug Fixes
11631175

11641176
* Fixed an issue in the
1165-
[`nrhttprouter`](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrhttprouter)
1177+
[`nrhttprouter`](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrhttprouter)
11661178
integration where the transaction was not being added to the requests
11671179
context. This resulted in an inability to access the transaction from within
11681180
an
@@ -1208,7 +1220,7 @@ package.
12081220
// (see https://docs.newrelic.com/docs/understand-dependencies/distributed-tracing/enable-configure/enable-distributed-tracing)
12091221
txn := currentTxn()
12101222

1211-
req, err := http.NewRequest("GET", "http://example.com", nil)
1223+
req, err := http.NewRequest("GET", "https://example.com", nil)
12121224
if nil != err {
12131225
log.Fatalln(err)
12141226
}
@@ -1384,9 +1396,9 @@ It can be configured as follows:
13841396
### New Features
13851397

13861398
* Added support for [HttpRouter](https://github.com/julienschmidt/httprouter) in
1387-
the new [_integrations/nrhttprouter](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrhttprouter) package. This package allows you to easily instrument inbound requests through the HttpRouter framework.
1399+
the new [_integrations/nrhttprouter](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrhttprouter) package. This package allows you to easily instrument inbound requests through the HttpRouter framework.
13881400

1389-
* [Documentation](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrhttprouter)
1401+
* [Documentation](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrhttprouter)
13901402
* [Example](_integrations/nrhttprouter/example/main.go)
13911403

13921404
* Added support for [github.com/uber-go/zap](https://github.com/uber-go/zap) in
@@ -1469,7 +1481,7 @@ package. This package supports instrumentation for servers, clients, publishers
14691481
* Added support for creating static `WebRequest` instances manually via the `NewStaticWebRequest` function. This can be useful when you want to create a web transaction but don't have an `http.Request` object. Here's an example of creating a static `WebRequest` and using it to mark a transaction as a web transaction:
14701482
```go
14711483
hdrs := http.Headers{}
1472-
u, _ := url.Parse("http://example.com")
1484+
u, _ := url.Parse("https://example.com")
14731485
webReq := newrelic.NewStaticWebRequest(hdrs, u, "GET", newrelic.TransportHTTP)
14741486
txn := app.StartTransaction("My-Transaction", nil, nil)
14751487
txn.SetWebRequest(webReq)
@@ -1701,8 +1713,8 @@ package. This package supports instrumentation for servers and clients.
17011713
When using these SDKs, a segment will be created for each out going request.
17021714
For DynamoDB calls, these will be Datastore segments and for all others they
17031715
will be External segments.
1704-
* [v1 Documentation](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrawssdk/v1)
1705-
* [v2 Documentation](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrawssdk/v2)
1716+
* [v1 Documentation](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrawssdk/v1)
1717+
* [v2 Documentation](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrawssdk/v2)
17061718

17071719
* Added span event and transaction trace segment attribute configuration. You
17081720
may control which attributes are captured in span events and transaction trace
@@ -1801,7 +1813,7 @@ txn.Application().RecordCustomEvent("customerOrder", map[string]interface{}{
18011813

18021814
* Added support for [Echo](https://echo.labstack.com) in the new `nrecho`
18031815
package.
1804-
* [Documentation](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrecho)
1816+
* [Documentation](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrecho)
18051817
* [Example](_integrations/nrecho/example/main.go)
18061818

18071819
* Introduced `Transaction.SetWebResponse(http.ResponseWriter)` method which sets
@@ -1864,7 +1876,7 @@ transactions. Example use:
18641876
```go
18651877
client := &http.Client{}
18661878
client.Transport = newrelic.NewRoundTripper(nil, client.Transport)
1867-
request, _ := http.NewRequest("GET", "http://example.com", nil)
1879+
request, _ := http.NewRequest("GET", "https://example.com", nil)
18681880
request = newrelic.RequestWithTransactionContext(request, txn)
18691881
resp, err := client.Do(request)
18701882
```
@@ -2027,7 +2039,7 @@ txn.NoticeError(newrelic.Error{
20272039
20282040
* Added support for [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin)
20292041
in the new `nrgin` package.
2030-
* [Documentation](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrgin/v1)
2042+
* [Documentation](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrgin/v1)
20312043
* [Example](examples/_gin/main.go)
20322044
20332045
## 1.8.0
@@ -2040,9 +2052,9 @@ txn.NoticeError(newrelic.Error{
20402052
20412053
## 1.7.0
20422054
2043-
* Added support for [gorilla/mux](http://github.com/gorilla/mux) in the new `nrgorilla`
2055+
* Added support for [gorilla/mux](https://github.com/gorilla/mux) in the new `nrgorilla`
20442056
package.
2045-
* [Documentation](http://godoc.org/github.com/newrelic/go-agent/_integrations/nrgorilla/v1)
2057+
* [Documentation](https://godoc.org/github.com/newrelic/go-agent/_integrations/nrgorilla/v1)
20462058
* [Example](examples/_gorilla/main.go)
20472059
20482060
## 1.6.0

GUIDE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ app, err := newrelic.NewApplication(
127127
To log at info level to a file, set:
128128

129129
```go
130-
w, err := os.OpenFile("my_log_file", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644)
130+
w, err := os.OpenFile("my_log_file", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)
131131
if nil == err {
132132
app, _ := newrelic.NewApplication(
133133
newrelic.ConfigAppName("Your Application Name"),
@@ -400,7 +400,7 @@ ways to use this functionality:
400400
```go
401401
client := &http.Client{}
402402
client.Transport = newrelic.NewRoundTripper(client.Transport)
403-
request, _ := http.NewRequest("GET", "http://example.com", nil)
403+
request, _ := http.NewRequest("GET", "https://example.com", nil)
404404
// Put transaction in the request's context:
405405
request = newrelic.RequestWithTransactionContext(request, txn)
406406
resp, err := client.Do(request)

MIGRATION.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ var _ newrelic.ErrorAttributer = MyErrorType{}
455455
```go
456456
client := &http.Client{}
457457
client.Transport = newrelic.NewRoundTripper(txn, client.Transport)
458-
req, _ := http.NewRequest("GET", "http://example.com", nil)
458+
req, _ := http.NewRequest("GET", "https://example.com", nil)
459459
client.Do(req)
460460
```
461461

ROADMAP.md

-26
This file was deleted.

v3/examples/server/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func message(w http.ResponseWriter, r *http.Request) {
159159

160160
func external(w http.ResponseWriter, r *http.Request) {
161161
txn := newrelic.FromContext(r.Context())
162-
req, _ := http.NewRequest("GET", "http://example.com", nil)
162+
req, _ := http.NewRequest("GET", "https://example.com", nil)
163163

164164
// Using StartExternalSegment is recommended because it does distributed
165165
// tracing header setup, but if you don't have an *http.Request and
@@ -193,7 +193,7 @@ func roundtripper(w http.ResponseWriter, r *http.Request) {
193193
client := &http.Client{}
194194
client.Transport = newrelic.NewRoundTripper(client.Transport)
195195

196-
request, _ := http.NewRequest("GET", "http://example.com", nil)
196+
request, _ := http.NewRequest("GET", "https://example.com", nil)
197197
// Since the transaction is already added to the inbound request's
198198
// context by WrapHandleFunc, we just need to copy the context from the
199199
// inbound request to the external request.

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

+1-1
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.19
44

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

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

+1-1
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.19
44

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

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

+1-1
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.19
44

5-
require github.com/newrelic/go-agent/v3 v3.28.1
5+
require github.com/newrelic/go-agent/v3 v3.29.0
66

77

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

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

+1-1
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.19
44

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

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

+1-1
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.19
44

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

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

+1-1
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.19
44

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module github.com/newrelic/go-agent/v3/integrations/logcontext/nrlogrusplugin
55
go 1.19
66

77
require (
8-
github.com/newrelic/go-agent/v3 v3.28.1
8+
github.com/newrelic/go-agent/v3 v3.29.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/nramqp
33
go 1.19
44

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

v3/integrations/nrawssdk-v1/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ go 1.19
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.28.1
11+
github.com/newrelic/go-agent/v3 v3.29.0
1212
)
1313

1414

v3/integrations/nrawssdk-v2/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/aws/aws-sdk-go-v2/service/lambda v1.24.5
1212
github.com/aws/aws-sdk-go-v2/service/s3 v1.27.10
1313
github.com/aws/smithy-go v1.13.3
14-
github.com/newrelic/go-agent/v3 v3.28.1
14+
github.com/newrelic/go-agent/v3 v3.29.0
1515
)
1616

1717

v3/integrations/nrb3/go.mod

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

33
go 1.19
44

5-
require github.com/newrelic/go-agent/v3 v3.28.1
5+
require github.com/newrelic/go-agent/v3 v3.29.0
66

77

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

v3/integrations/nrecho-v3/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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.28.1
11+
github.com/newrelic/go-agent/v3 v3.29.0
1212
)
1313

1414

v3/integrations/nrecho-v4/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ go 1.19
66

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

1212

v3/integrations/nrelasticsearch-v7/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ go 1.19
66

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

1212

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module client-example
33
go 1.19
44

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module server-example
33
go 1.19
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.28.1
6+
github.com/newrelic/go-agent/v3 v3.29.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-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/nrfasthttp
33
go 1.19
44

55
require (
6-
github.com/newrelic/go-agent/v3 v3.28.1
6+
github.com/newrelic/go-agent/v3 v3.29.0
77
github.com/valyala/fasthttp v1.49.0
88
)
9+
replace github.com/newrelic/go-agent/v3 => ../..

v3/integrations/nrgin/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ go 1.19
66

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

1212

v3/integrations/nrgorilla/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ go 1.19
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.28.1
10+
github.com/newrelic/go-agent/v3 v3.29.0
1111
)
1212

1313

v3/integrations/nrgraphgophers/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ go 1.19
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.28.1
10+
github.com/newrelic/go-agent/v3 v3.29.0
1111
)
1212

1313

v3/integrations/nrgraphqlgo/example/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
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.28.1
8+
github.com/newrelic/go-agent/v3 v3.29.0
99
github.com/newrelic/go-agent/v3/integrations/nrgraphqlgo v1.0.0
1010
)
1111

v3/integrations/nrgraphqlgo/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

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

1010

0 commit comments

Comments
 (0)