Skip to content

Commit

Permalink
Use WIP libdatadog endpoint update
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisonlevi committed Dec 12, 2022
1 parent c75ca57 commit fd1bccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion profiling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ anyhow = { version = "1.0" }
cfg-if = { version = "1.0" }
crossbeam-channel = { version = "0.5", default-features = false, features = ["std"] }
cpu-time = { version = "1.0" }
datadog-profiling = { git = "https://github.com/DataDog/libdatadog", tag = "v1.0.0" }
datadog-profiling = { git = "https://github.com/DataDog/libdatadog", rev = "85cdec258bf53a68545fcad98c5c6a0997484932" }
env_logger = { version = "0.9.3" }
indexmap = { version = "1.8" }
lazy_static = { version = "1.4" }
Expand Down
4 changes: 2 additions & 2 deletions profiling/src/profiling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ impl TimeCollector {
"Received Endpoint Profiling message for span id {}.",
message.local_root_span_id
);
let local_root_span_id = message.local_root_span_id.to_string();

let local_root_span_id = message.local_root_span_id;
for (_, profile) in profiles.iter_mut() {
let local_root_span_id = Cow::Borrowed(local_root_span_id.as_ref());
let endpoint = Cow::Borrowed(message.resource.as_str());
profile.add_endpoint(local_root_span_id, endpoint)
}
Expand Down

0 comments on commit fd1bccc

Please sign in to comment.