Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(coderd): add enabled experiments to telemetry #12656

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 2 commits into from
Mar 19, 2024

Conversation

dannykopping
Copy link
Contributor

Relates to #12070

This is PR 1 of 2 to complete this feature.
I'll be preparing a separate PR to add the receiver on the telemetry server.

@dannykopping dannykopping changed the title feat(telemetry): add enabled experiments to telemetry feat(coderd): add enabled experiments to telemetry Mar 19, 2024
Signed-off-by: Danny Kopping <[email protected]>
@dannykopping dannykopping requested a review from johnstcn March 19, 2024 08:02
require.Equal(t, "aws_marketplace", deployment.InstallSource)
}

func collectSnapshot(t *testing.T, db database.Store) (*telemetry.Deployment, *telemetry.Snapshot) {
func collectSnapshot(t *testing.T, db database.Store, addOptionsFn func(opts telemetry.Options) telemetry.Options) (*telemetry.Deployment, *telemetry.Snapshot) {
Copy link
Member

Choose a reason for hiding this comment

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

suggestion, nonblocking: if you make addOptionsFn variadic you can avoid the need for changes on line 88 and 113

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's an interesting idea, but I think it'd change the semantics a bit.

@dannykopping dannykopping merged commit ab95ae8 into coder:main Mar 19, 2024
@dannykopping dannykopping deleted the dk/experiments-telemetry branch March 19, 2024 09:05
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants