diff --git a/Cargo.lock b/Cargo.lock
index 22d8213..673f0b4 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=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"bytes",
@@ -941,8 +941,9 @@ dependencies = [
[[package]]
name = "libdd-capabilities-impl"
version = "3.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
+ "anyhow",
"bytes",
"http",
"http-body-util",
@@ -989,7 +990,7 @@ dependencies = [
[[package]]
name = "libdd-common"
version = "5.1.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"bytes",
@@ -1052,13 +1053,14 @@ dependencies = [
[[package]]
name = "libdd-data-pipeline"
version = "7.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"arc-swap",
"async-trait",
"bytes",
"either",
+ "futures",
"getrandom 0.2.17",
"http",
"http-body-util",
@@ -1081,6 +1083,7 @@ dependencies = [
"tokio-util",
"tracing",
"uuid",
+ "web-time",
]
[[package]]
@@ -1094,7 +1097,7 @@ dependencies = [
[[package]]
name = "libdd-ddsketch"
version = "1.1.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"prost",
]
@@ -1102,13 +1105,16 @@ dependencies = [
[[package]]
name = "libdd-dogstatsd-client"
version = "4.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+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",
]
@@ -1174,7 +1180,7 @@ dependencies = [
[[package]]
name = "libdd-shared-runtime"
version = "2.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"async-trait",
"futures",
@@ -1218,7 +1224,7 @@ dependencies = [
[[package]]
name = "libdd-tinybytes"
version = "1.1.1"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"serde",
]
@@ -1226,7 +1232,7 @@ dependencies = [
[[package]]
name = "libdd-trace-normalization"
version = "3.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"libdd-trace-protobuf 4.0.0",
@@ -1235,7 +1241,7 @@ dependencies = [
[[package]]
name = "libdd-trace-obfuscation"
version = "5.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"fluent-uri",
@@ -1261,7 +1267,7 @@ dependencies = [
[[package]]
name = "libdd-trace-protobuf"
version = "4.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"prost",
"serde",
@@ -1271,7 +1277,7 @@ dependencies = [
[[package]]
name = "libdd-trace-stats"
version = "6.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"arc-swap",
@@ -1293,12 +1299,13 @@ dependencies = [
"tokio",
"tokio-util",
"tracing",
+ "web-time",
]
[[package]]
name = "libdd-trace-utils"
version = "9.0.0"
-source = "git+https://github.com/DataDog/libdatadog.git?rev=8cd68ab922fb7aade0f089ccfc91291d874673af#8cd68ab922fb7aade0f089ccfc91291d874673af"
+source = "git+https://github.com/DataDog/libdatadog.git?rev=15899dfe754d12186ce7db72f0ff41c1920d52ec#15899dfe754d12186ce7db72f0ff41c1920d52ec"
dependencies = [
"anyhow",
"base64",
@@ -1310,6 +1317,7 @@ dependencies = [
"http-body",
"http-body-util",
"indexmap",
+ "itoa",
"libdd-capabilities 2.1.0",
"libdd-capabilities-impl 3.0.0",
"libdd-common 5.1.0",
@@ -1796,20 +1804,15 @@ 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",
- "libdd-trace-stats",
"libdd-trace-utils",
- "rmp-serde",
"serde",
"serde_json",
"uuid",
@@ -2757,6 +2760,16 @@ dependencies = [
"semver",
]
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
[[package]]
name = "webpki-root-certs"
version = "1.0.8"
diff --git a/crates/capabilities/Cargo.toml b/crates/capabilities/Cargo.toml
index cbb376e..8578a78 100644
--- a/crates/capabilities/Cargo.toml
+++ b/crates/capabilities/Cargo.toml
@@ -17,7 +17,7 @@ futures-core = "0.3"
anyhow = "1"
# TODO: Replace this temporary libdatadog PR rev with the official release/tag
# that contains DataDog/libdatadog#2235, then regenerate Cargo.lock.
-libdd-capabilities = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af" }
+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 f8e318a..77dd5b4 100644
--- a/crates/pipeline/Cargo.toml
+++ b/crates/pipeline/Cargo.toml
@@ -16,16 +16,11 @@ serde_json = "1"
libdatadog-nodejs-capabilities = { path = "../capabilities" }
# 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 = "8cd68ab922fb7aade0f089ccfc91291d874673af" }
-libdd-common = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af", default-features = false }
-libdd-data-pipeline = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af", default-features = false }
-libdd-trace-utils = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af", default-features = false, features = ["change-buffer"] }
-libdd-trace-stats = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af", default-features = false }
-libdd-trace-protobuf = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af", default-features = false }
-libdd-shared-runtime = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af", default-features = false }
-rmp-serde = "1"
-bytes = "1"
-http = "1"
+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 }
+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 31188af..9774578 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