Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to newrelic 2.1.0 #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

migrate to newrelic 2.1.0 #4

wants to merge 2 commits into from

Conversation

thekostya
Copy link
Contributor

@thekostya thekostya commented Dec 7, 2018

migrate to go.mod and newrelic v2.1.0

we have problem with travis and go mod

go mod required to place module not in gopath but travis do it.
i include GO111MODULE=on to skip this checker but we should fix that in travis

@@ -45,43 +45,43 @@ func WrapHandler(app newrelic.Application, name string, handler http.Handler) ht
}

// Segment returns the New Relic Segment object from context.
func Segment(ctx context.Context) newrelic.Segment {
if sgm, ok := ctx.Value(segment).(newrelic.Segment); ok {
func Segment(ctx context.Context) *newrelic.Segment {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change the signature of the function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because newrelic v2 changed this signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants