aboutsummaryrefslogtreecommitdiff
path: root/src/api/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/api/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/api/Cargo.toml')
-rw-r--r--src/api/Cargo.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/Cargo.toml b/src/api/Cargo.toml
index db77cf38..782054bd 100644
--- a/src/api/Cargo.toml
+++ b/src/api/Cargo.toml
@@ -55,8 +55,9 @@ url = "2.1"
opentelemetry = "0.17"
opentelemetry-prometheus = "0.10"
-opentelemetry-otlp = "0.10"
+opentelemetry-otlp = { version = "0.10", optional = true }
prometheus = "0.13"
[features]
k2v = [ "garage_util/k2v", "garage_model/k2v" ]
+telemetry-otlp = ["opentelemetry-otlp"]