Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 61b99c8

Browse files
authored
Telemetry on WASM runtime (#362)
1 parent 2ec3418 commit 61b99c8

40 files changed

+1270
-302
lines changed

.github/workflows/ci.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- name: run containers
6363
working-directory: libs/smoke_tests/
64-
run: docker compose -f docker-compose.yaml up -d
64+
run: docker compose -f docker-compose.yaml up -d --remove-orphans --wait --force-recreate
6565

6666
- uses: JarvusInnovations/background-action@v1
6767
name: run test server in background
@@ -89,6 +89,13 @@ jobs:
8989
run: cargo test --features binary -- --nocapture
9090
env:
9191
CONDUCTOR_URL: http://127.0.0.1:9000
92+
RUST_BACKTRACE: full
93+
94+
- name: restart containers
95+
working-directory: libs/smoke_tests/
96+
run: |
97+
docker compose down
98+
docker compose -f docker-compose.yaml up -d --remove-orphans --wait --force-recreate
9299
93100
- uses: the-guild-org/shared-config/setup@main
94101
name: setup env (wasm)
@@ -114,6 +121,7 @@ jobs:
114121
run: cargo test --features wasm -- --nocapture
115122
env:
116123
CONDUCTOR_URL: http://127.0.0.1:8787
124+
RUST_BACKTRACE: full
117125

118126
graphql-over-http:
119127
runs-on: ubuntu-22.04

Cargo.lock

+110-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ vrl = { git = "https://github.com/dotansimha/vrl.git", rev = "d59b2f66727d3c345b
2626
"value",
2727
"stdlib",
2828
] }
29-
minitrace = "0.6.3"
29+
minitrace = "0.6.4"
3030

3131
[profile.release.package.conductor-cf-worker]
3232
strip = true
3333
codegen-units = 1
34-
35-
[profile.release.graphql-conductor_lib]
36-
lto = true

bin/cloudflare_worker/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ description = "Conductor Cloudflare Worker runtime"
66
license = "MIT"
77
repository = "https://github.com/the-guild-org/conductor"
88

9-
# https://github.com/rustwasm/wasm-pack/issues/1247
109
[package.metadata.wasm-pack.profile.release]
11-
wasm-opt = false
10+
wasm-opt = true
1211

1312
[lib]
1413
crate-type = ["cdylib"]
@@ -19,8 +18,10 @@ conductor_config = { path = "../../libs/config" }
1918
conductor_engine = { path = "../../libs/engine" }
2019
conductor_common = { path = "../../libs/common" }
2120
conductor_logger = { path = "../../libs/logger" }
21+
conductor_tracing = { path = "../../libs/tracing" }
2222
tracing = { workspace = true }
2323
tracing-web = "0.1.3"
2424
tracing-subscriber = { workspace = true, features = ['time', 'json'] }
2525
time = { version = "0.3.34", features = ['wasm-bindgen'] }
2626
console_error_panic_hook = "0.1.7"
27+
minitrace = { workspace = true, features = ["enable"] }

0 commit comments

Comments
 (0)