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

Adds an option to set a timeout for service invocation #1252

Merged
merged 10 commits into from
Apr 8, 2024

Conversation

elena-kolevska
Copy link
Contributor

@elena-kolevska elena-kolevska commented Mar 18, 2024

Description

Adds an option to set a timeout for http and grpc

Issue reference

#1007

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena@kolevska.com>
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.31%. Comparing base (1b7c9f4) to head (b5962f1).
Report is 1 commits behind head on master.

❗ Current head b5962f1 differs from pull request most recent head c37f86b. Consider uploading reports for the commit c37f86b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1252      +/-   ##
==========================================
+ Coverage   67.28%   67.31%   +0.02%     
==========================================
  Files         174      174              
  Lines        6025     6030       +5     
  Branches      671      672       +1     
==========================================
+ Hits         4054     4059       +5     
  Misses       1802     1802              
  Partials      169      169              
Flag Coverage Δ
net6 67.29% <100.00%> (+0.02%) ⬆️
net7 67.29% <100.00%> (+0.02%) ⬆️
net8 67.29% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena@kolevska.com>
@elena-kolevska elena-kolevska marked this pull request as ready for review March 18, 2024 23:41
@elena-kolevska elena-kolevska requested review from a team as code owners March 18, 2024 23:41
…tly to the call as shown in the updated tests and docs

Signed-off-by: Elena Kolevska <elena@kolevska.com>
@elena-kolevska elena-kolevska changed the title Adds an option to set a timeout for http and grpc Adds an option to set a timeout for service invocation Apr 5, 2024
@@ -57,6 +57,7 @@ public DaprClientBuilder()
// property exposed for testing purposes
internal GrpcChannelOptions GrpcChannelOptions { get; private set; }
internal string DaprApiToken { get; private set; }
internal TimeSpan Timeout { get; private set; } // in milliseconds
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: remove comment? (No longer in milliseconds?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thanks. Done!

philliphoff
philliphoff previously approved these changes Apr 8, 2024
Copy link
Collaborator

@philliphoff philliphoff left a comment

Choose a reason for hiding this comment

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

Just one nit re: comments, otherwise looks good.

Signed-off-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
@philliphoff philliphoff merged commit bdca3b3 into dapr:master Apr 8, 2024
10 checks passed
@marcduiker
Copy link
Contributor

@holopin-bot @elena-kolevska Thanks Elena! 😁

Copy link

holopin-bot bot commented Apr 24, 2024

Congratulations @elena-kolevska, you just earned a badge! Here it is: https://holopin.io/claim/clvdvlg1657300gji363rwirt

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

@taufan-mft
Copy link

hi guys, first of all thank you for this PR. I've build this version locally and it solved what I needed. Any idea on when this will be included in the release sir @philliphoff ?

@philliphoff
Copy link
Collaborator

@taufan-mft It should be part of the v1.14 Dapr release. You can follow its progress in its release planning issue here: dapr/dapr#7605

@taufan-mft
Copy link

taufan-mft commented Jun 7, 2024

thanks a lot! @philliphoff @elena-kolevska

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.

4 participants