Skip to content

Commit

Permalink
Merge pull request #320 from abeltay/fix-external-seg-document
Browse files Browse the repository at this point in the history
Thanks, @abeltay ! This one must have slipped through the cracks years ago.
  • Loading branch information
RichVanderwal committed Jun 1, 2021
2 parents fc39c45 + 070386e commit 78fda45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ ways to use this functionality:
For example:

```go
func external(txn newrelic.Transaction, req *http.Request) (*http.Response, error) {
s := txn.StartExternalSegment(req)
func external(txn *newrelic.Transaction, req *http.Request) (*http.Response, error) {
s := newrelic.StartExternalSegment(txn, req)
response, err := http.DefaultClient.Do(req)
s.Response = response
s.End()
Expand Down

0 comments on commit 78fda45

Please sign in to comment.