[crashtracker] Enable timeout on receiver#702
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #702 +/- ##
==========================================
+ Coverage 71.25% 71.54% +0.28%
==========================================
Files 281 281
Lines 42315 42422 +107
==========================================
+ Hits 30150 30349 +199
+ Misses 12165 12073 -92
|
BenchmarksComparisonBenchmark execution time: 2024-11-06 21:56:33 Comparing candidate commit aca4820 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 51 metrics, 2 unstable metrics. CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
BaselineOmitted due to size. |
f8a5aab to
2d5d0f9
Compare
2d5d0f9 to
e1d9f38
Compare
sanchda
approved these changes
Nov 1, 2024
Contributor
sanchda
left a comment
There was a problem hiding this comment.
LGTM; I added some comments for discussion, but none of them block this PR.
Bump to v14.0.0
* Collect agent info from sidecar Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Add comments and test for AgentInfo in sidecar Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> --------- Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Fixes `use_alt_stack` to actually do something and adds tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a timeout to the crashtracker receiver, enabling it to post a partial crash report if the collector hangs. Previously, a collector hang could cause the receiver to also hang.
Motivation
This implements a mitigation from the RFC.
Additional Notes
There is an open question about how to configure this timeout. Currently, we're offering an environment variable. We could take the value from the config, but that is passed on the socket, so its odd for a timeout on the socket to depend on a value that came on the socket.
How to test the change?
Added two new tests.