-
Notifications
You must be signed in to change notification settings - Fork 462
contrib: load telemetry info for all integrations #1882
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
Conversation
contrib/garyburd/redigo/redigo.go
Outdated
|
||
redis "github.com/garyburd/redigo/redis" | ||
) | ||
|
||
func init() { | ||
telemetry.LoadIntegration("garyburd/redigo/redis") |
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.
Should this just be garyburd/redigo
?
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.
Oh strange. We named this package incorrectly based on our contrib requirements. So @lievan used the name of the package instead of the name of the directory.. which I would actually say is correct. Wdyt?
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 like this has happened in a few places (e.g. contrib/google.golang.org/api/api.go)
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.
Based on our convo, yep it should be garyburd/redigo
to match the component tag 👍
contrib/google.golang.org/api/api.go
Outdated
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.
Want to use the new component constant here as well? (see line 66)
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.
This file also has a couple other uses of the component
…og/dd-trace-go into evan.li/all-integrations-telemetry
Co-authored-by: Andrew Glaude <andrew.glaude@datadoghq.com>
…og/dd-trace-go into evan.li/all-integrations-telemetry
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!
What does this PR do?
This PR enables instrumentation telemetry data for all integrations. The integration name is defined by the path after
contrib
.For example for
contrib/99designs/gqlgen
, we addMotivation
Describe how to test/QA your changes
Reviewer's Checklist