Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

Commit b3ab9ea

Browse files
committed
Instrument tests with custom macro & export over OTLP
1 parent 5d0867c commit b3ab9ea

File tree

8 files changed

+315
-72
lines changed

8 files changed

+315
-72
lines changed

Cargo.lock

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

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ members = [
88
"shared-bin",
99
"daemon-tests",
1010
"tokio-extras",
11+
"otel-tests",
1112
"xtras",
1213
"xtra-bitmex-price-feed",
1314
"bdk-ext",

daemon-tests/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ maker = { path = "../maker" }
1313
mockall = "0.11"
1414
mockall_derive = "0.11"
1515
model = { path = "../model" }
16+
opentelemetry = { version = "0.17.0", features = ["rt-tokio"] }
17+
opentelemetry-otlp = { version = "0.10.0", features = ["grpc-sys", "trace"] }
18+
otel-tests = { path = "../otel-tests" }
1619
rand = "0.6"
1720
rust_decimal = "1.25"
1821
rust_decimal_macros = "1.25"
1922
sqlite-db = { path = "../sqlite-db" }
2023
time = "0.3.11"
2124
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "net", "tracing"] }
2225
tokio-extras = { path = "../tokio-extras", features = ["xtra"] }
26+
futures = "0.3"
2327
tracing = { version = "0.1" }
28+
tracing-opentelemetry = "0.17.4"
2429
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "ansi", "env-filter", "local-time", "tracing-log", "json"] }
2530
xtra = { version = "0.6", features = ["instrumentation"] }
2631
xtra-bitmex-price-feed = { path = "../xtra-bitmex-price-feed" }

0 commit comments

Comments
 (0)