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

feat: use retryable http client for datadog metric provider #2579

Conversation

kaldorn
Copy link

@kaldorn kaldorn commented Feb 9, 2023

Adds a retryable http.client that automatically handles 429 rate limit responses with exponential backoff.

related to: #2549
closes: #2578

Signed-off-by: kaldorn [[email protected]]

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

Go Published Test Results

1 850 tests   1 850 ✔️  2m 34s ⏱️
   112 suites         0 💤
       1 files           0

Results for commit 66b650c.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Base: 81.60% // Head: 81.62% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (66b650c) compared to base (0450778).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 66b650c differs from pull request most recent head 88e6b18. Consider uploading reports for the commit 88e6b18 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2579      +/-   ##
==========================================
+ Coverage   81.60%   81.62%   +0.02%     
==========================================
  Files         130      130              
  Lines       19483    19488       +5     
==========================================
+ Hits        15900    15908       +8     
+ Misses       2766     2764       -2     
+ Partials      817      816       -1     
Impacted Files Coverage Δ
metricproviders/datadog/datadog.go 80.66% <100.00%> (+2.73%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

kaldorn added 2 commits February 9, 2023 14:51
Signed-off-by: kaldorn <[email protected]>
…der' of github.com:getoutreach/argoproj-argo-rollouts into feat-use-retryable-http-client-for-datadog-metric-provider
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

E2E Tests Published Test Results

    2 files      2 suites   1h 34m 41s ⏱️
  96 tests   93 ✔️ 3 💤 0
192 runs  186 ✔️ 6 💤 0

Results for commit 66b650c.

daniddelrio and others added 4 commits February 9, 2023 15:50
* Add name attribute to ServicePort

Signed-off-by: Daniel Del Rio <[email protected]>

* Format with gofmt

Signed-off-by: Daniel Del Rio <[email protected]>

* Update experiment test by adding port name

Signed-off-by: Daniel Del Rio <[email protected]>

* Include port name only when given

Signed-off-by: Daniel Del Rio <[email protected]>

* Implement separate e2e tests for single unnamed port and two named ports

Signed-off-by: Daniel Del Rio <[email protected]>

* Remove port name in experiment_test.go

Signed-off-by: Daniel Del Rio <[email protected]>

* Replace Sleep in new multiport service experiment

Signed-off-by: Daniel Del Rio <[email protected]>

---------

Signed-off-by: Daniel Del Rio <[email protected]>
Signed-off-by: kaldorn <[email protected]>
Signed-off-by: kaldorn <[email protected]>
…der' of github.com:getoutreach/argoproj-argo-rollouts into feat-use-retryable-http-client-for-datadog-metric-provider
@kaldorn kaldorn closed this Feb 9, 2023
@kaldorn kaldorn deleted the feat-use-retryable-http-client-for-datadog-metric-provider branch February 9, 2023 23:53
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.

Use exponential backoff on ratelimits with datadog provider
2 participants