aboutsummaryrefslogtreecommitdiff
path: root/src/garage/Cargo.toml
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2022-09-03 23:40:44 +0200
committerJakub Jirutka <jakub@jirutka.cz>2022-09-06 01:14:47 +0200
commite7af006c1c8211bf83b5d8abb7490ef270dd8345 (patch)
tree57a6161840f00c2c28b2b91c2cd065e7603b7af8 /src/garage/Cargo.toml
parentdb72812f01027ab2abd2226a0edaf3161f32e274 (diff)
downloadgarage-e7af006c1c8211bf83b5d8abb7490ef270dd8345.tar.gz
garage-e7af006c1c8211bf83b5d8abb7490ef270dd8345.zip
Make OTLP exporter optional via feature "telemetry-otlp"
opentelemetry-otlp add 48 (!) extra dependencies and increases the size of the garage binary by ~11 % (with fat LTO).
Diffstat (limited to 'src/garage/Cargo.toml')
-rw-r--r--src/garage/Cargo.toml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/garage/Cargo.toml b/src/garage/Cargo.toml
index e19aac50..8573e2fc 100644
--- a/src/garage/Cargo.toml
+++ b/src/garage/Cargo.toml
@@ -56,7 +56,7 @@ netapp = "0.4"
opentelemetry = { version = "0.17", features = [ "rt-tokio" ] }
opentelemetry-prometheus = "0.10"
-opentelemetry-otlp = "0.10"
+opentelemetry-otlp = { version = "0.10", optional = true }
prometheus = "0.13"
[dev-dependencies]
@@ -77,6 +77,8 @@ base64 = "0.13"
default = [ "bundled-libs" ]
kubernetes-discovery = [ "garage_rpc/kubernetes-discovery" ]
k2v = [ "garage_util/k2v", "garage_api/k2v" ]
+# Exporter for the OpenTelemetry Collector.
+telemetry-otlp = [ "opentelemetry-otlp", "garage_api/telemetry-otlp" ]
# NOTE: bundled-libs and system-libs should be treat as mutually exclusive;
# exactly one of them should be enabled.