Skip to content

Commit

Permalink
update newrelic and mocks (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyalaribe committed Apr 15, 2019
1 parent 81479b0 commit 8a821fe
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions fdapm/apmmock/newrelic_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,28 @@ type mockPayload struct{}

func (p mockPayload) Text() string { return "" }
func (p mockPayload) HTTPSafe() string { return "" }

// Application ..
func (t *NewRelicTransaction) Application() newrelic.Application {
return nil
}

// BrowserTimingHeader ...
func (t *NewRelicTransaction) BrowserTimingHeader() (*newrelic.BrowserTimingHeader, error) {
return nil, nil
}

// NewGoroutine ...
func (t *NewRelicTransaction) NewGoroutine() newrelic.Transaction {
return nil
}

// SetWebRequest ...
func (t *NewRelicTransaction) SetWebRequest(req newrelic.WebRequest) error {
return nil
}

// SetWebResponse ...
func (t *NewRelicTransaction) SetWebResponse(w http.ResponseWriter) newrelic.Transaction {
return nil
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/johntdyer/slackrus v0.0.0-20180518184837-f7aae3243a07
github.com/julienschmidt/httprouter v1.2.0
github.com/justinas/alice v0.0.0-20171023064455-03f45bd4b7da
github.com/newrelic/go-agent v2.1.0+incompatible
github.com/newrelic/go-agent v2.7.0+incompatible
github.com/peterbourgon/g2s v0.0.0-20170223122336-d4e7ad98afea // indirect
github.com/rubyist/circuitbreaker v2.2.1+incompatible
github.com/sirupsen/logrus v1.2.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGi
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/newrelic/go-agent v2.1.0+incompatible h1:fCuxXeM4eeIKPbzffOWW6y2Dj+eYfc3yylgNZACZqkM=
github.com/newrelic/go-agent v2.1.0+incompatible/go.mod h1:a8Fv1b/fYhFSReoTU6HDkTYIMZeSVNffmoS726Y0LzQ=
github.com/newrelic/go-agent v2.7.0+incompatible h1:T5tJ9nNY1bXBfLUTCEZRuBLPT0f9+mE1jd4EaNoN5Zs=
github.com/newrelic/go-agent v2.7.0+incompatible/go.mod h1:a8Fv1b/fYhFSReoTU6HDkTYIMZeSVNffmoS726Y0LzQ=
github.com/peterbourgon/g2s v0.0.0-20170223122336-d4e7ad98afea h1:sKwxy1H95npauwu8vtF95vG/syrL0p8fSZo/XlDg5gk=
github.com/peterbourgon/g2s v0.0.0-20170223122336-d4e7ad98afea/go.mod h1:1VcHEd3ro4QMoHfiNl/j7Jkln9+KQuorp0PItHMJYNg=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down

0 comments on commit 8a821fe

Please sign in to comment.