Skip to content

Commit

Permalink
Add a few debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
  • Loading branch information
bwoebi committed Sep 20, 2024
1 parent 5c1a59f commit 73d1fd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sidecar/src/service/session_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ use std::{

use futures::future;

use crate::log::{MultiEnvFilterGuard, MultiWriterGuard};
use crate::{dogstatsd, spawn_map_err, tracer};
use datadog_live_debugger::sender::{DebuggerType, PayloadSender};
use datadog_remote_config::fetch::ConfigInvariants;
use tracing::log::warn;
use tracing::{debug, error, info, trace};

use crate::log::{MultiEnvFilterGuard, MultiWriterGuard};
use crate::{dogstatsd, spawn_map_err, tracer};

use crate::service::{InstanceId, QueueId, RuntimeInfo};
/// `SessionInfo` holds information about a session.
///
Expand Down Expand Up @@ -286,7 +286,14 @@ impl SessionInfo {
error!("Error sending to live debugger {debugger_type:?} endpoint: {e:?}");
}
);
} else {
warn!("Did not find queue_id {queue_id:?} for runtime id {runtime_id} od session id {} - skipping live debugger data", self.session_id);
}
} else {
warn!(
"Did not find runtime {runtime_id} for session id {} - skipping live debugger data",
self.session_id
);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions sidecar/src/service/sidecar_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,8 @@ impl SidecarInterface for SidecarServer {
app_version: String,
global_tags: Vec<Tag>,
) -> Self::SetRemoteConfigDataFut {
debug!("Registered remote config metadata: instance {instance_id:?}, queue_id: {queue_id:?}, service: {service_name}, env: {env_name}, version: {app_version}");

let session = self.get_session(&instance_id.session_id);
#[cfg(windows)]
let notify_target = if let Some(handle) = self.process_handle {
Expand Down

0 comments on commit 73d1fd5

Please sign in to comment.