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

agents: apply the correct config on zmq with SaaS #59

Merged
merged 1 commit into from
Jan 8, 2024
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
11 changes: 6 additions & 5 deletions agents/zmq/src/zmq_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,10 @@ int ZmqAgent::config(const json& config) {
}
}

if (utils::find_any_fields_in_diff(diff, { "/blockedLoopThreshold" })) {
setup_blocked_loop_hooks();
}

// Return early if command handle is not to be configured
if (command_handle_ == nullptr) {
return 0;
Expand All @@ -1454,12 +1458,9 @@ int ZmqAgent::config(const json& config) {
}
}

if (utils::find_any_fields_in_diff(diff, { "/blockedLoopThreshold" })) {
setup_blocked_loop_hooks();
}

// Configure tracing flags
if (utils::find_any_fields_in_diff(diff, { "/tracingEnabled",
if (tracer_ == nullptr ||
utils::find_any_fields_in_diff(diff, { "/tracingEnabled",
"/tracingModulesBlacklist" })) {
auto it = config_.find("tracingEnabled");
if (it != config_.end()) {
Expand Down
Loading