Skip to content

Commit

Permalink
Fix command for StartExternalSegment
Browse files Browse the repository at this point in the history
  • Loading branch information
abeltay committed May 31, 2021
1 parent 428af9a commit 070386e
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 070386e

Please sign in to comment.