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

Refactored PromRemoteWriteExporter to create client in Start to accomodate future update to ToClient() apis #3308

Merged
merged 4 commits into from
May 26, 2021

Conversation

pavankrish123
Copy link
Contributor

Description:

Updated PrometheusRemoteWriteExporter for upcoming client auth extension changes. Moved httpClient creation to Start method of the component. This ensures the call to ToClient() method gets access to host object which is required in the next version of ToClient() apis.

Link to tracking Issue:
#3287 #3282

Testing:
Unit tests

Documentation:
Unit tests

@pavankrish123 pavankrish123 requested a review from a team May 26, 2021 00:00
@pavankrish123
Copy link
Contributor Author

cc: @bogdandrutu @gramidt @jpkrohling

Copy link
Member

@gramidt gramidt left a comment

Choose a reason for hiding this comment

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

After addressing the improvement Bogdan mentioned, LGTM.

@bogdandrutu
Copy link
Member

Please rebase the PR so you can pass CircleCI tests

@bogdandrutu bogdandrutu merged commit 4f768ff into open-telemetry:main May 26, 2021
@pavankrish123 pavankrish123 deleted the refactor/prwe branch May 27, 2021 05:32
dashpole pushed a commit to dashpole/opentelemetry-collector that referenced this pull request Jun 14, 2021
…odate future update to ToClient() apis (open-telemetry#3308)

* Refactored PromRemoteWriteExporter to create client in Start

* fixed impi errors

* Fixed per review comments
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.

5 participants