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

contrib/go-pg/pg.v10 add options, ServiceName #953

Merged
merged 5 commits into from
Jun 29, 2021

Conversation

pzvalenta
Copy link
Contributor

Adds options

Implements #951

Copy link
Contributor

@knusbaum knusbaum left a comment

Choose a reason for hiding this comment

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

Hi, @pzvalenta. Thanks for the PR.

It looks mostly good, but I have some style change requests for you.
Also, we should probably add tests for the analytics options. They should be easy to copy from other contrib packages.

contrib/go-pg/pg.v10/option.go Outdated Show resolved Hide resolved
contrib/go-pg/pg.v10/option.go Outdated Show resolved Hide resolved
contrib/go-pg/pg.v10/pg_go_test.go Outdated Show resolved Hide resolved
contrib/go-pg/pg.v10/pg_go.go Outdated Show resolved Hide resolved
@knusbaum knusbaum added this to the 1.32.0 milestone Jun 22, 2021
@pzvalenta
Copy link
Contributor Author

Thanks for your review. Added TestAnalyticsRate test inspired by gorm tests and TestServiceName inspired gintracing tests. Both tests are based on the original TestSelect in this package.

@knusbaum knusbaum merged commit ebec988 into DataDog:v1 Jun 29, 2021
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