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

[exporter/datadog] Replace HistogramMode defined as string with enum #9589

Merged

Conversation

keisku
Copy link
Contributor

@keisku keisku commented Apr 29, 2022

Description:

Replace HistogramConfig.Mode defined as string with translator.HistogramMode.

Link to tracking Issue: #8373

Testing:

Documentation:

@keisku keisku requested a review from a team April 29, 2022 13:49
@keisku keisku requested a review from mx-psi as a code owner April 29, 2022 13:49
@keisku keisku marked this pull request as draft April 29, 2022 14:13
@keisku keisku force-pushed the keisku/use_enum_for_histogram_mode branch from 9881fc1 to 2781bce Compare April 29, 2022 21:36
@keisku keisku force-pushed the keisku/use_enum_for_histogram_mode branch from 2781bce to ffb9b2f Compare April 29, 2022 21:38
@keisku keisku marked this pull request as ready for review April 29, 2022 21:38
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

Code LGTM, just one comment about the changelog. For reference, this relates to #8373

CHANGELOG.md Outdated Show resolved Hide resolved
@keisku keisku force-pushed the keisku/use_enum_for_histogram_mode branch from 7b00696 to c049c65 Compare May 2, 2022 08:17
@keisku keisku requested a review from mx-psi May 2, 2022 08:17
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

LGTM, I left a comment for one last 'nice to have' thing I forgot on my earlier review

exporter/datadogexporter/config/config.go Outdated Show resolved Hide resolved
@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label May 2, 2022
@mx-psi
Copy link
Member

mx-psi commented May 2, 2022

For a maintainer to double check before merging: this has a breaking change on the Go API, since we switch from a string to string type alias. It will not break users of the binary. I believe the breakage is okay since it's hard to do in two steps and disruption is minimal, but I want a maintainer to explicitly approve this since it goes against the guidelines.

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

I think this is ok so long as you as the code owner for this component are ok with this change 👍

@codeboten codeboten merged commit b32af03 into open-telemetry:main May 3, 2022
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request May 10, 2022
…pen-telemetry#9589)

* replace Histogram defined as string with enum

* update CHANGELOG

* move to Breaking changes

* remove HistogramMode handling from Unmarshal()
@keisku keisku deleted the keisku/use_enum_for_histogram_mode branch July 12, 2022 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants