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

Allow configuring all ConnTrackers' debug trace level at runtime #2023

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,12 @@ void SocketTraceConnector::UpdateTrackerTraceLevel(ConnTracker* tracker) {
if (pids_to_trace_disable_.contains(tracker->conn_id().upid.pid)) {
tracker->SetDebugTrace(0);
}
// Debugging Server side tracing is difficult when the server side services requests pre fork
// (certain web servers, postgres, etc). This provides a means for enabling CONN_TRACE for
// all processes since these situations are impossible to debug via --stirling_conn_trace_pid.
if (debug_level_ >= 2) {
tracker->SetDebugTrace(2);
}
}

// Verifies that our openssl tracing does not encounter conditions that invalidate our
Expand Down
Loading