Skip to content

Commit

Permalink
Revert "build(profiling): update to libdatadog v7 (#2605)"
Browse files Browse the repository at this point in the history
This reverts commit e670e76.
  • Loading branch information
realFlowControl authored Apr 4, 2024
1 parent 633c5ad commit 3dbd00c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions profiling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ bumpalo = { version = "3.12", features = ["collections"] }
cfg-if = { version = "1.0" }
cpu-time = { version = "1.0" }
crossbeam-channel = { version = "0.5", default-features = false, features = ["std"] }
datadog-profiling = { git = "https://github.com/DataDog/libdatadog", tag = "v7.0.0" }
ddcommon = { git = "https://github.com/DataDog/libdatadog", tag = "v7.0.0" }
datadog-profiling = { git = "https://github.com/DataDog/libdatadog", tag = "v6.0.0" }
ddcommon = { git = "https://github.com/DataDog/libdatadog", tag = "v6.0.0" }
env_logger = { version = "0.10" }
indexmap = { version = "2.2.0" }
lazy_static = { version = "1.4" }
Expand Down
4 changes: 2 additions & 2 deletions profiling/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl Default for AgentEndpoint {
}
}

impl TryFrom<AgentEndpoint> for ddcommon::Endpoint {
impl TryFrom<AgentEndpoint> for datadog_profiling::exporter::Endpoint {
type Error = anyhow::Error;

fn try_from(value: AgentEndpoint) -> Result<Self, Self::Error> {
Expand All @@ -179,7 +179,7 @@ impl TryFrom<AgentEndpoint> for ddcommon::Endpoint {
}
}

impl TryFrom<&AgentEndpoint> for ddcommon::Endpoint {
impl TryFrom<&AgentEndpoint> for datadog_profiling::exporter::Endpoint {
type Error = anyhow::Error;

fn try_from(value: &AgentEndpoint) -> Result<Self, Self::Error> {
Expand Down
3 changes: 1 addition & 2 deletions profiling/src/profiling/uploader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use crate::exception::EXCEPTION_PROFILING_EXCEPTION_COUNT;
use crate::profiling::{UploadMessage, UploadRequest};
use crate::{PROFILER_NAME_STR, PROFILER_VERSION_STR};
use crossbeam_channel::{select, Receiver};
use datadog_profiling::exporter::File;
use ddcommon::Endpoint;
use datadog_profiling::exporter::{Endpoint, File};
use log::{debug, info, warn};
use serde_json::json;
use std::borrow::Cow;
Expand Down

0 comments on commit 3dbd00c

Please sign in to comment.