-
Notifications
You must be signed in to change notification settings - Fork 436
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
Add meta about lang in the payload header #98
Conversation
tracer/ext/tracer.go
Outdated
|
||
const ( | ||
Lang = "go" | ||
Interpreter = runtime.Compiler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this https://golang.org/pkg/runtime/#pkg-constants, it seems that GOARCH
and GOOS
are more interesting that Compiler
. Can you use both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can concatenate them like this: gc_linux
But I'm not sure adding amd64
will be helpful, it'll just add noise.
tracer/ext/tracer.go
Outdated
const ( | ||
Lang = "go" | ||
Interpreter = runtime.Compiler | ||
TracerVersion = "v0.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: we should remember to update this value after each release, so it may be better to write this somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, should we put it in the readme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Let's merge it and cut a "release" after we tested it. Thank you!
tracer/ext/tracer.go
Outdated
|
||
const ( | ||
Lang = "go" | ||
Interpreter = runtime.Compiler + "_" + runtime.GOOS + "_" + runtime.GOARCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Adds the following headers so that Trace Agent can report it as a metrics: