Skip to content

Commit 2076120

Browse files
committed
only pull in tokio::sync
1 parent d8e046e commit 2076120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opentelemetry-sdk/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ serde = { workspace = true, features = ["derive", "rc"], optional = true }
2222
serde_json = { workspace = true, optional = true }
2323
thiserror = { workspace = true }
2424
url = { workspace = true, optional = true }
25-
tokio = { workspace = true, features = ["rt", "time"], optional = true }
25+
tokio = { workspace = true, default-features = false, optional = true }
2626
tokio-stream = { workspace = true, optional = true }
2727
http = { workspace = true, optional = true }
2828

@@ -47,15 +47,15 @@ spec_unstable_logs_enabled = ["logs", "opentelemetry/spec_unstable_logs_enabled"
4747
metrics = ["opentelemetry/metrics"]
4848
testing = ["opentelemetry/testing", "trace", "metrics", "logs", "rt-tokio", "rt-tokio-current-thread", "tokio/macros", "tokio/rt-multi-thread"]
4949
experimental_async_runtime = []
50-
rt-tokio = ["tokio", "tokio-stream", "experimental_async_runtime"]
51-
rt-tokio-current-thread = ["tokio", "tokio-stream", "experimental_async_runtime"]
50+
rt-tokio = ["tokio/rt", "tokio/time", "tokio-stream", "experimental_async_runtime"]
51+
rt-tokio-current-thread = ["tokio/rt", "tokio/time", "tokio-stream", "experimental_async_runtime"]
5252
internal-logs = ["opentelemetry/internal-logs"]
5353
experimental_metrics_periodicreader_with_async_runtime = ["metrics", "experimental_async_runtime"]
5454
spec_unstable_metrics_views = ["metrics"]
5555
experimental_metrics_custom_reader = ["metrics"]
5656
experimental_logs_batch_log_processor_with_async_runtime = ["logs", "experimental_async_runtime"]
5757
experimental_logs_concurrent_log_processor = ["logs"]
58-
experimental_trace_batch_span_processor_with_async_runtime = ["rt-tokio", "trace", "experimental_async_runtime"]
58+
experimental_trace_batch_span_processor_with_async_runtime = ["tokio/sync", "trace", "experimental_async_runtime"]
5959
experimental_metrics_disable_name_validation = ["metrics"]
6060

6161
[[bench]]

0 commit comments

Comments
 (0)