Skip to content

Commit 6c2bfcb

Browse files
committed
initial commit
1 parent 16f80c2 commit 6c2bfcb

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

opentelemetry-otlp/tests/integration_test/Cargo.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,15 @@ testcontainers = "0.15.0"
1616

1717
[target.'cfg(unix)'.dependencies]
1818
opentelemetry-appender-log = { path = "../../../opentelemetry-appender-log", default-features = false}
19-
opentelemetry-otlp = { path = "../../../opentelemetry-otlp", features = ["tonic", "metrics", "logs"] }
20-
opentelemetry-semantic-conventions = { path = "../../../opentelemetry-semantic-conventions" }
19+
opentelemetry-otlp = { path = "../../../opentelemetry-otlp", default-features = false }
20+
opentelemetry-semantic-conventions = { path = "../../../opentelemetry-semantic-conventions" }
21+
22+
23+
[features]
24+
hyper-client = ["opentelemetry-otlp/hyper-client", "opentelemetry-otlp/trace", "opentelemetry-otlp/logs", "opentelemetry-otlp/metrics"]
25+
reqwest-client = ["opentelemetry-otlp/reqwest-client", "opentelemetry-otlp/trace","opentelemetry-otlp/logs", "opentelemetry-otlp/metrics"]
26+
reqwest-blocking-client = ["opentelemetry-otlp/reqwest-blocking-client", "opentelemetry-otlp/trace","opentelemetry-otlp/logs", "opentelemetry-otlp/metrics"]
27+
tonic-client = ["opentelemetry-otlp/grpc-tonic", "opentelemetry-otlp/trace", "opentelemetry-otlp/logs", "opentelemetry-otlp/metrics"]
28+
29+
# Keep tonic as the default client
30+
default = ["tonic-client"]

scripts/integration_tests.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
cd ./opentelemetry-otlp/tests/integration_test/tests && cargo test -- --ignored
1+
# Run tests with the grpc-tonic feature
2+
cd ./opentelemetry-otlp/tests/integration_test/tests && cargo test --no-default-features --features "tonic-client" -- --ignored
3+
4+
# Run tests with the reqwest-client feature
5+
#cd ./opentelemetry-otlp/tests/integration_test/tests && cargo test --no-default-features --features "reqwest-client" -- --ignored
6+
7+
# Run tests with the reqwest-blocking-client feature
8+
#cd ./opentelemetry-otlp/tests/integration_test/tests && cargo test --no-default-features --features "reqwest-blocking-client" -- --ignored
9+
10+
# Run tests with the hyper-client feature
11+
#cd ./opentelemetry-otlp/tests/integration_test/tests && cargo test --no-default-features --features "hyper-client" -- --ignored

0 commit comments

Comments
 (0)