Skip to content

Commit afba974

Browse files
committed
chore: Upgrade libdatadog and construct http client for traces
1 parent bac841c commit afba974

36 files changed

+132
-101
lines changed

bottlecap/Cargo.lock

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bottlecap/Cargo.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,22 @@ rustls-native-certs = { version = "0.8.1", optional = true }
5050
axum = { version = "0.8.4", default-features = false, features = ["default"] }
5151
ustr = { version = "1.0.0", default-features = false }
5252
tower-http = { version = "0.6.6", default-features = false, features = ["limit"] }
53+
hyper-http-proxy = { version = "1.1.0", default-features = false, features = [
54+
"rustls-tls-webpki-roots",
55+
] }
5356
# If you are adding or updating a datadog-owned code dependency, please ensure
5457
# that it has a clippy.toml rule for disallowing the reqwest::Client::builder
5558
# method in favor of our
5659
# datadog_fips::reqwest_adapter::create_reqwest_client_builder. An example can
5760
# be found in the clippy.toml file adjacent to this Cargo.toml.
5861
datadog-protos = { version = "0.1.0", default-features = false, git = "https://github.com/DataDog/saluki/", rev = "c89b58e5784b985819baf11f13f7d35876741222"}
5962
ddsketch-agent = { version = "0.1.0", default-features = false, git = "https://github.com/DataDog/saluki/", rev = "c89b58e5784b985819baf11f13f7d35876741222"}
60-
ddcommon = { git = "https://github.com/DataDog/libdatadog", rev = "ba8955394cf35cf24a1a508fbe6264ad84702567" }
61-
datadog-trace-protobuf = { git = "https://github.com/DataDog/libdatadog", rev = "ba8955394cf35cf24a1a508fbe6264ad84702567" }
62-
datadog-trace-utils = { git = "https://github.com/DataDog/libdatadog", rev = "ba8955394cf35cf24a1a508fbe6264ad84702567" , features = ["mini_agent"] }
63-
datadog-trace-normalization = { git = "https://github.com/DataDog/libdatadog", rev = "ba8955394cf35cf24a1a508fbe6264ad84702567" }
64-
datadog-trace-obfuscation = { git = "https://github.com/DataDog/libdatadog", rev = "ba8955394cf35cf24a1a508fbe6264ad84702567" }
65-
datadog-trace-stats = { git = "https://github.com/DataDog/libdatadog", rev = "ba8955394cf35cf24a1a508fbe6264ad84702567" }
63+
ddcommon = { git = "https://github.com/DataDog/libdatadog", rev = "edba78910c0afaf610c875226b1aa7ac084f918d" }
64+
libdd-trace-protobuf = { git = "https://github.com/DataDog/libdatadog", rev = "edba78910c0afaf610c875226b1aa7ac084f918d" }
65+
datadog-trace-utils = { git = "https://github.com/DataDog/libdatadog", rev = "edba78910c0afaf610c875226b1aa7ac084f918d" , features = ["mini_agent"] }
66+
libdd-trace-normalization = { git = "https://github.com/DataDog/libdatadog", rev = "edba78910c0afaf610c875226b1aa7ac084f918d" }
67+
datadog-trace-obfuscation = { git = "https://github.com/DataDog/libdatadog", rev = "edba78910c0afaf610c875226b1aa7ac084f918d" }
68+
datadog-trace-stats = { git = "https://github.com/DataDog/libdatadog", rev = "edba78910c0afaf610c875226b1aa7ac084f918d" }
6669
dogstatsd = { git = "https://github.com/DataDog/serverless-components", rev = "05b9dee1ac7c72d296ea12e85685c026cb6dbaaf", default-features = false }
6770
datadog-fips = { git = "https://github.com/DataDog/serverless-components", rev = "05b9dee1ac7c72d296ea12e85685c026cb6dbaaf", default-features = false }
6871
libddwaf = { version = "1.28.1", git = "https://github.com/DataDog/libddwaf-rust", rev = "d1534a158d976bd4f747bf9fcc58e0712d2d17fc", default-features = false, features = ["serde"] }
@@ -104,7 +107,7 @@ opt-level = 3
104107
tikv-jemallocator = "0.5"
105108

106109
[features]
107-
default = ["reqwest/rustls-tls-native-roots", "dogstatsd/default", "datadog-fips/default" ]
110+
default = ["reqwest/rustls-tls-native-roots", "dogstatsd/default", "datadog-fips/default", ]
108111
fips = [
109112
"ddcommon/fips",
110113
"datadog-trace-utils/fips",

bottlecap/src/appsec/processor/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::sync::Arc;
44
use std::time::Duration;
55

66
use bytes::{Buf, Bytes};
7-
use datadog_trace_protobuf::pb::Span;
7+
use libdd_trace_protobuf::pb::Span;
88
use datadog_trace_utils::tracer_header_tags;
99
use libddwaf::object::{Keyed, WafMap, WafObject};
1010
use libddwaf::{Context as WafContext, Handle, RunError, RunOutput, RunResult, waf_map};

bottlecap/src/appsec/processor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::time::Duration;
88

99
use bytes::Bytes;
1010
use cookie::Cookie;
11-
use datadog_trace_protobuf::pb::Span;
11+
use libdd_trace_protobuf::pb::Span;
1212
use itertools::Itertools;
1313
use libddwaf::object::{WafMap, WafOwned};
1414
use libddwaf::{Builder, Config as WafConfig, Handle};

bottlecap/src/lifecycle/invocation/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
time::{SystemTime, UNIX_EPOCH},
88
};
99

10-
use datadog_trace_protobuf::pb::Span;
10+
use libdd_trace_protobuf::pb::Span;
1111
use serde_json::Value;
1212
use tracing::debug;
1313

bottlecap/src/lifecycle/invocation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use base64::{DecodeError, Engine, engine::general_purpose};
2-
use datadog_trace_protobuf::pb::Span;
2+
use libdd_trace_protobuf::pb::Span;
33
use rand::{Rng, RngCore, rngs::OsRng};
44
use std::collections::HashMap;
55

bottlecap/src/lifecycle/invocation/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::{
55
};
66

77
use chrono::{DateTime, Utc};
8-
use datadog_trace_protobuf::pb::Span;
8+
use libdd_trace_protobuf::pb::Span;
99
use datadog_trace_utils::tracer_header_tags;
1010
use serde_json::Value;
1111
use tokio::time::Instant;

bottlecap/src/lifecycle/invocation/processor_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{collections::HashMap, sync::Arc};
22

33
use chrono::{DateTime, Utc};
4-
use datadog_trace_protobuf::pb::Span;
4+
use libdd_trace_protobuf::pb::Span;
55
use dogstatsd::aggregator_service::AggregatorHandle;
66
use serde_json::Value;
77
use thiserror::Error;

bottlecap/src/lifecycle/invocation/span_inferrer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::collections::HashMap;
22
use std::sync::Arc;
33

4-
use datadog_trace_protobuf::pb::Span;
4+
use libdd_trace_protobuf::pb::Span;
55
use serde_json::Value;
66
use tracing::debug;
77

bottlecap/src/lifecycle/invocation/triggers/alb_event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::ServiceNameResolver;
22
use crate::lifecycle::invocation::triggers::{
33
FUNCTION_TRIGGER_EVENT_SOURCE_TAG, Trigger, body::Body,
44
};
5-
use datadog_trace_protobuf::pb::Span;
5+
use libdd_trace_protobuf::pb::Span;
66
use serde::{Deserialize, Serialize};
77
use serde_json::Value;
88
use std::collections::HashMap;

0 commit comments

Comments
 (0)