Skip to content

Commit

Permalink
Telemetry on WASM runtime (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored Feb 11, 2024
1 parent 2ec3418 commit 61b99c8
Show file tree
Hide file tree
Showing 40 changed files with 1,270 additions and 302 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

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

- uses: JarvusInnovations/background-action@v1
name: run test server in background
Expand Down Expand Up @@ -89,6 +89,13 @@ jobs:
run: cargo test --features binary -- --nocapture
env:
CONDUCTOR_URL: http://127.0.0.1:9000
RUST_BACKTRACE: full

- name: restart containers
working-directory: libs/smoke_tests/
run: |
docker compose down
docker compose -f docker-compose.yaml up -d --remove-orphans --wait --force-recreate
- uses: the-guild-org/shared-config/setup@main
name: setup env (wasm)
Expand All @@ -114,6 +121,7 @@ jobs:
run: cargo test --features wasm -- --nocapture
env:
CONDUCTOR_URL: http://127.0.0.1:8787
RUST_BACKTRACE: full

graphql-over-http:
runs-on: ubuntu-22.04
Expand Down
120 changes: 110 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ vrl = { git = "https://github.com/dotansimha/vrl.git", rev = "d59b2f66727d3c345b
"value",
"stdlib",
] }
minitrace = "0.6.3"
minitrace = "0.6.4"

[profile.release.package.conductor-cf-worker]
strip = true
codegen-units = 1

[profile.release.graphql-conductor_lib]
lto = true
5 changes: 3 additions & 2 deletions bin/cloudflare_worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ description = "Conductor Cloudflare Worker runtime"
license = "MIT"
repository = "https://github.com/the-guild-org/conductor"

# https://github.com/rustwasm/wasm-pack/issues/1247
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
wasm-opt = true

[lib]
crate-type = ["cdylib"]
Expand All @@ -19,8 +18,10 @@ conductor_config = { path = "../../libs/config" }
conductor_engine = { path = "../../libs/engine" }
conductor_common = { path = "../../libs/common" }
conductor_logger = { path = "../../libs/logger" }
conductor_tracing = { path = "../../libs/tracing" }
tracing = { workspace = true }
tracing-web = "0.1.3"
tracing-subscriber = { workspace = true, features = ['time', 'json'] }
time = { version = "0.3.34", features = ['wasm-bindgen'] }
console_error_panic_hook = "0.1.7"
minitrace = { workspace = true, features = ["enable"] }
Loading

0 comments on commit 61b99c8

Please sign in to comment.