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).
This commit is contained in:
Jakub Jirutka
2022-09-03 23:40:44 +02:00
parent db72812f01
commit e7af006c1c
4 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -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"]