Skip to content

Commit

Permalink
Merge pull request #337 from RichVanderwal/nrawssdk-v2-sample-change
Browse files Browse the repository at this point in the history
example change to support PR #328, plus CHANGELOG.md
  • Loading branch information
RichVanderwal committed Jul 2, 2021
2 parents 83f4e36 + 852ae31 commit c056c49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Changed
* Improved the NR AWS SDK V2 integration to use the current transaction rather than the one passed in during middleware creation, if `nil` is passed into nrawssdk-v2.AppendMiddlewares. Thanks to @HenriBeck for noticing and suggesting improvement, and thanks to @nc-wittj for the fantastic PR! [#328](https://github.com/newrelic/go-agent/pull/328)

## 3.13.0

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrawssdk-v2/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func main() {
}

// Instrument all new AWS clients with New Relic
nraws.AppendMiddlewares(&awsConfig.APIOptions, txn)
nraws.AppendMiddlewares(&awsConfig.APIOptions, nil)

s3Client := s3.NewFromConfig(awsConfig)
output, err := s3Client.ListBuckets(ctx, nil)
Expand Down

0 comments on commit c056c49

Please sign in to comment.