Skip to content

Commit 0bf80b1

Browse files
committed
chore: remove unused trace_exporter crate
The pipeline crate's WasmSpanState builds its own internal TraceExporter and owns serialization + send (sendPreparedChunk), superseding the standalone trace_exporter binding (JsTraceExporter, the earlier pre-encoded-v0.4-bytes path). Nothing consumes it: dd-trace-js (native-spans and master) loads only the pipeline crate, and no other tracked code references it. Drop the crate, its wasm test, and the build/test wiring.
1 parent 10c3af3 commit 0bf80b1

6 files changed

Lines changed: 1 addition & 224 deletions

File tree

Cargo.lock

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

crates/trace_exporter/Cargo.toml

Lines changed: 0 additions & 25 deletions
This file was deleted.

crates/trace_exporter/src/lib.rs

Lines changed: 0 additions & 114 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build-debug": "mkdir -p target && yarn -s cargo-build > ./target/out.ndjson && yarn -s copy-artifacts",
1010
"build-release": "mkdir -p target && yarn -s cargo-build-release > ./target/out.ndjson && yarn -s copy-artifacts",
1111
"build-all": "mkdir -p target && yarn -s cargo-build -- --workspace > ./target/out.ndjson && yarn -s copy-artifacts && yarn -s build-wasm",
12-
"build-wasm": "node scripts/build-wasm.js library_config && node scripts/build-wasm.js datadog-js-zstd && node scripts/build-wasm.js trace_exporter && node scripts/build-wasm.js pipeline",
12+
"build-wasm": "node scripts/build-wasm.js library_config && node scripts/build-wasm.js datadog-js-zstd && node scripts/build-wasm.js pipeline",
1313
"cargo-build-release": "yarn -s cargo-build -- --release",
1414
"cargo-build": "cargo build --message-format=json-render-diagnostics",
1515
"copy-artifacts": "node ./scripts/copy-artifacts",

scripts/test.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,3 @@ for d in test/*/; do
3535
;;
3636
esac
3737
done
38-
39-
# The wasm trace exporter integration test runs against its own in-process mock
40-
# agent, so run it directly (other test/wasm/* modules remain manual for now).
41-
run_test test/wasm/trace_exporter/index.js

test/wasm/trace_exporter/index.js

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)