Skip to content

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

Merged
merged 12 commits into from
Apr 10, 2023

Conversation

lievan
Copy link
Contributor

@lievan lievan commented Apr 10, 2023

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 add

func init() {
	telemetry.LoadIntegration("99designs/gqlgen")
}

Motivation

Describe how to test/QA your changes

Reviewer's Checklist

  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

Sorry, something went wrong.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@lievan lievan added this to the v1.50.0 milestone Apr 10, 2023
@lievan lievan requested a review from a team April 10, 2023 14:50
lievan and others added 2 commits April 10, 2023 11:02

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

redis "github.com/garyburd/redigo/redis"
)

func init() {
telemetry.LoadIntegration("garyburd/redigo/redis")
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor

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)

Copy link
Contributor

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 👍

lievan and others added 3 commits April 10, 2023 11:28

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Copy link
Contributor

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)

Copy link
Contributor

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

lievan and others added 5 commits April 10, 2023 13:18

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…og/dd-trace-go into evan.li/all-integrations-telemetry

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Co-authored-by: Andrew Glaude <andrew.glaude@datadoghq.com>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…og/dd-trace-go into evan.li/all-integrations-telemetry
ajgajg1134
ajgajg1134 previously approved these changes Apr 10, 2023
Copy link
Contributor

@ajgajg1134 ajgajg1134 left a 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!

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@lievan lievan enabled auto-merge (squash) April 10, 2023 18:09
@lievan lievan merged commit f0ad6d6 into main Apr 10, 2023
@lievan lievan deleted the evan.li/all-integrations-telemetry branch April 10, 2023 18:16
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.

None yet

3 participants