-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement timeouts for both sending traces and telemetry. #518
Conversation
1a8343f
to
e2ca938
Compare
BenchmarksThis comment was omitted because it was over 65536 characters.Please check the Gitlab Job logs to see its output. |
e2ca938
to
c93575a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #518 +/- ##
==========================================
+ Coverage 70.42% 70.58% +0.16%
==========================================
Files 206 206
Lines 27964 28129 +165
==========================================
+ Hits 19694 19856 +162
- Misses 8270 8273 +3
|
ca17e83
to
85dc749
Compare
1ed553b
to
0513e2b
Compare
Slightly surprised that we opt modifying the Endpoint struct, but it probably makes sense :-) Can you please also add a FFI API to set the timeout on the Endpoint? |
0513e2b
to
85dc749
Compare
2efdfd2
to
6f93cd0
Compare
1a38259
to
18f54cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now, thanks!
1265a2f
to
949da71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go, modulo some small comments.
0f35bf4
to
253fcb0
Compare
* Lower default timeout value to 3 seconds. * Fix overwriting timeout value from endpoint passed as a parameter. * Rename timeout constant in send data tests.
* Use from_slice in tests. * Fix timeout. * Fix spelling. * Add error handling to set_timeout.
253fcb0
to
702cceb
Compare
What does this PR do?
This PR adds a new timeout field to the
Endpoint
struct in order to set a timeout for outgoing connections used for sending telemetry and traces.Motivation
Prevent situations where holding too many connections could lead to memory pressure or resource exhaustion in the system by dropping them after a period of inactivity.