diff --git a/Cargo.lock b/Cargo.lock
index b69d0b47..5aa7b6bf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -917,7 +917,7 @@ dependencies = [
[[package]]
name = "libdd-capabilities"
version = "2.1.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"bytes",
@@ -941,7 +941,7 @@ dependencies = [
[[package]]
name = "libdd-capabilities-impl"
version = "3.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"bytes",
@@ -990,7 +990,7 @@ dependencies = [
[[package]]
name = "libdd-common"
version = "5.1.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"bytes",
@@ -1053,7 +1053,7 @@ dependencies = [
[[package]]
name = "libdd-data-pipeline"
version = "7.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"arc-swap",
@@ -1067,13 +1067,13 @@ dependencies = [
"libdd-capabilities 2.1.0",
"libdd-capabilities-impl 3.0.0",
"libdd-common 5.1.0",
- "libdd-ddsketch 1.1.0",
+ "libdd-ddsketch 1.1.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
"libdd-dogstatsd-client",
"libdd-shared-runtime 2.0.0",
"libdd-telemetry 6.0.0",
"libdd-tinybytes",
"libdd-trace-normalization",
- "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f)",
+ "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
"libdd-trace-stats",
"libdd-trace-utils",
"rmp-serde",
@@ -1095,6 +1095,14 @@ dependencies = [
"prost",
]
+[[package]]
+name = "libdd-ddsketch"
+version = "1.1.0"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
+dependencies = [
+ "prost",
+]
+
[[package]]
name = "libdd-ddsketch"
version = "1.1.0"
@@ -1106,13 +1114,16 @@ dependencies = [
[[package]]
name = "libdd-dogstatsd-client"
version = "4.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
+ "async-trait",
"cadence",
"http",
"libdd-common 5.1.0",
+ "libdd-shared-runtime 2.0.0",
"serde",
+ "tokio",
"tracing",
]
@@ -1164,7 +1175,7 @@ dependencies = [
[[package]]
name = "libdd-shared-runtime"
version = "2.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"async-trait",
"futures",
@@ -1208,7 +1219,7 @@ dependencies = [
[[package]]
name = "libdd-telemetry"
version = "6.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"async-trait",
@@ -1221,7 +1232,7 @@ dependencies = [
"libc",
"libdd-capabilities 2.1.0",
"libdd-common 5.1.0",
- "libdd-ddsketch 1.1.0",
+ "libdd-ddsketch 1.1.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
"libdd-shared-runtime 2.0.0",
"serde",
"serde_json",
@@ -1237,7 +1248,7 @@ dependencies = [
[[package]]
name = "libdd-tinybytes"
version = "1.1.1"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"serde",
]
@@ -1245,21 +1256,21 @@ dependencies = [
[[package]]
name = "libdd-trace-normalization"
version = "3.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
- "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f)",
+ "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
]
[[package]]
name = "libdd-trace-obfuscation"
version = "5.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"fluent-uri",
"libdd-common 5.1.0",
- "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f)",
+ "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
"libdd-trace-utils",
"log",
"percent-encoding",
@@ -1280,7 +1291,7 @@ dependencies = [
[[package]]
name = "libdd-trace-protobuf"
version = "4.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"prost",
"serde",
@@ -1290,7 +1301,7 @@ dependencies = [
[[package]]
name = "libdd-trace-stats"
version = "6.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"arc-swap",
@@ -1301,12 +1312,12 @@ dependencies = [
"libdd-capabilities 2.1.0",
"libdd-capabilities-impl 3.0.0",
"libdd-common 5.1.0",
- "libdd-ddsketch 1.1.0",
+ "libdd-ddsketch 1.1.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
"libdd-dogstatsd-client",
"libdd-shared-runtime 2.0.0",
"libdd-telemetry 6.0.0",
"libdd-trace-obfuscation",
- "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f)",
+ "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
"libdd-trace-utils",
"rmp-serde",
"serde",
@@ -1319,7 +1330,7 @@ dependencies = [
[[package]]
name = "libdd-trace-utils"
version = "9.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f#3081603d3c74f209be4e3be951f78a1a7469397f"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"base64",
@@ -1337,7 +1348,7 @@ dependencies = [
"libdd-common 5.1.0",
"libdd-tinybytes",
"libdd-trace-normalization",
- "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f)",
+ "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec)",
"prost",
"rand",
"rmp",
@@ -1818,27 +1829,21 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
name = "pipeline"
version = "0.1.0"
dependencies = [
- "bytes",
"console_error_panic_hook",
"getrandom 0.2.17",
- "http",
"js-sys",
"libdatadog-nodejs-capabilities",
"libdd-capabilities 2.1.0",
"libdd-common 5.1.0",
"libdd-data-pipeline",
"libdd-shared-runtime 2.0.0",
- "libdd-trace-protobuf 4.0.0 (git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f)",
- "libdd-trace-stats",
"libdd-trace-utils",
- "rmp-serde",
"serde",
"serde_json",
"uuid",
"wasm-bindgen",
"wasm-bindgen-futures",
"wasm-bindgen-test",
- "web-time",
]
[[package]]
@@ -2368,7 +2373,7 @@ checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
name = "sketches"
version = "0.1.0"
dependencies = [
- "libdd-ddsketch 1.1.0",
+ "libdd-ddsketch 1.1.0 (git+https://github.com/DataDog/libdatadog.git?rev=3081603d3c74f209be4e3be951f78a1a7469397f)",
"wasm-bindgen",
]
diff --git a/crates/capabilities/Cargo.toml b/crates/capabilities/Cargo.toml
index edb40adc..371b3f4c 100644
--- a/crates/capabilities/Cargo.toml
+++ b/crates/capabilities/Cargo.toml
@@ -15,7 +15,7 @@ http = "1"
bytes = "1.4"
futures-core = "0.3"
anyhow = "1"
-libdd-capabilities = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f" }
+libdd-capabilities = { git = "https://github.com/DataDog/libdatadog.git", rev = "15899dfe754d12186ce7db72f0ff41c1920d52ec" }
[dev-dependencies]
wasm-bindgen-test = "0.3"
diff --git a/crates/pipeline/Cargo.toml b/crates/pipeline/Cargo.toml
index 8056816e..81f1c15b 100644
--- a/crates/pipeline/Cargo.toml
+++ b/crates/pipeline/Cargo.toml
@@ -14,17 +14,13 @@ js-sys = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
libdatadog-nodejs-capabilities = { path = "../capabilities" }
-libdd-capabilities = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f" }
-libdd-common = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f", default-features = false }
-libdd-data-pipeline = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f", default-features = false, features = ["telemetry"] }
-libdd-trace-utils = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f", default-features = false, features = ["change-buffer"] }
-libdd-trace-stats = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f", default-features = false }
-libdd-trace-protobuf = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f", default-features = false }
-libdd-shared-runtime = { git = "https://github.com/DataDog/libdatadog.git", rev = "3081603d3c74f209be4e3be951f78a1a7469397f", default-features = false }
-rmp-serde = "1"
-bytes = "1"
-http = "1"
-web-time = "1"
+# TODO: Replace these temporary libdatadog PR revs with the official release/tag
+# that contains DataDog/libdatadog#2235, then regenerate Cargo.lock.
+libdd-capabilities = { git = "https://github.com/DataDog/libdatadog.git", rev = "15899dfe754d12186ce7db72f0ff41c1920d52ec" }
+libdd-common = { git = "https://github.com/DataDog/libdatadog.git", rev = "15899dfe754d12186ce7db72f0ff41c1920d52ec", default-features = false }
+libdd-data-pipeline = { git = "https://github.com/DataDog/libdatadog.git", rev = "15899dfe754d12186ce7db72f0ff41c1920d52ec", default-features = false, features = ["telemetry"] }
+libdd-trace-utils = { git = "https://github.com/DataDog/libdatadog.git", rev = "15899dfe754d12186ce7db72f0ff41c1920d52ec", default-features = false, features = ["change-buffer"] }
+libdd-shared-runtime = { git = "https://github.com/DataDog/libdatadog.git", rev = "15899dfe754d12186ce7db72f0ff41c1920d52ec", default-features = false }
console_error_panic_hook = "0.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
diff --git a/crates/pipeline/src/lib.rs b/crates/pipeline/src/lib.rs
index eb25866e..b3108f15 100644
--- a/crates/pipeline/src/lib.rs
+++ b/crates/pipeline/src/lib.rs
@@ -18,8 +18,6 @@ mod span_bytes;
mod trace_data;
use trace_data::*;
-mod stats;
-
use libdd_trace_utils::change_buffer::{ChangeBuffer, ChangeBufferState};
use libdd_trace_utils::span::v04::{AttributeAnyValue, AttributeArrayValue, SpanEvent};
use span_string::SpanString;
@@ -170,7 +168,6 @@ pub struct WasmSpanState {
exporter: UnsafeCell