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] Move configuration structs to main package #11468

Merged
merged 10 commits into from
Jul 6, 2022

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Jun 23, 2022

Description:

  • Move configuration structs to main package of exporter. Deprecate config package.
  • Remove deprecated Sanitize method by making it private (renamed to logWarnings).

Link to tracking Issue: Updates #8373

@mx-psi mx-psi marked this pull request as ready for review June 23, 2022 15:14
@mx-psi mx-psi requested review from a team and codeboten June 23, 2022 15:14
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.

Please rebase

Copy link
Member

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

This is a good change, I think 🙂

exporter/datadogexporter/factory.go Outdated Show resolved Hide resolved
exporter/datadogexporter/factory.go Outdated Show resolved Hide resolved
exporter/datadogexporter/config.go Show resolved Hide resolved
@mx-psi mx-psi requested a review from codeboten July 2, 2022 11:17
@mx-psi
Copy link
Member Author

mx-psi commented Jul 2, 2022

@codeboten did you want to leave a review here?

@mx-psi
Copy link
Member Author

mx-psi commented Jul 4, 2022

@djaglowski This PR needs two release notes: one for deprecating the config package, and another for the removal of the Sanitize method. The two are closely related and are tracked by the same issue. What should I do?

@TylerHelmuth
Copy link
Member

@djaglowski This PR needs two release notes: one for deprecating the config package, and another for the removal of the Sanitize method. The two are closely related and are tracked by the same issue. What should I do?

Related to this comment: #11847 (comment). For now I think you have to modify the changelog manually and then add a skip changelog label. Then then the release manager had to do some manual merging during the release.

@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 4, 2022
@mx-psi
Copy link
Member Author

mx-psi commented Jul 4, 2022

Thanks @TylerHelmuth! I added Skip Changelog to bypass the changelog check, since that also sounds like a valid solution. I will wait for Daniel to see this before merging just in case :)

@djaglowski
Copy link
Member

I agree w/ what Tyler said for now. Longer term, this is obviously not ideal.

Should we just remove the requirement that only 1 new entry is added? I think it's worth continuing to reject modifications/removals, but adding multiple change entries is probably allowable. I'm not sure we necessarily need to optimize for this case either, since it is infrequent enough. It seems like adding two files with some duplication between them is not unreasonable. WDYT?

@mx-psi
Copy link
Member Author

mx-psi commented Jul 5, 2022

Should we just remove the requirement that only 1 new entry is added? I think it's worth continuing to reject modifications/removals, but adding multiple change entries is probably allowable. I'm not sure we necessarily need to optimize for this case either, since it is infrequent enough. It seems like adding two files with some duplication between them is not unreasonable. WDYT?

I think that makes sense, yes, thanks for having a look! Modifications/removals are more likely to be mistakes (although there could be legitimate uses but they are very rare)

@mx-psi mx-psi removed the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 6, 2022
@mx-psi mx-psi merged commit b55861b into open-telemetry:main Jul 6, 2022
@mx-psi mx-psi deleted the mx-psi/datadog/move-config branch July 6, 2022 10:07
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.

6 participants