diff options
author | Alex <alex@adnab.me> | 2022-09-06 15:11:30 +0200 |
---|---|---|
committer | Alex <alex@adnab.me> | 2022-09-06 15:11:30 +0200 |
commit | ed7796924b17ae4e73b21fdd9dfaa0a45bed98ff (patch) | |
tree | 73dd84bba384a79cacdbd4bdec01c5c9485d2c6b /src/api/Cargo.toml | |
parent | 729a910e14bc44925175ea8240d0c16fdfc18103 (diff) | |
parent | ea36b9ff904a8300afb8fb1601cde88c915a810f (diff) | |
download | garage-ed7796924b17ae4e73b21fdd9dfaa0a45bed98ff.tar.gz garage-ed7796924b17ae4e73b21fdd9dfaa0a45bed98ff.zip |
Merge pull request 'Make OTLP exporter optional and allow building without Prometheus exporter (/metrics)' (#372) from jirutka/garage:telemetry-and-metrics into improve-deps
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/372
Reviewed-by: Alex <alex@adnab.me>
Diffstat (limited to 'src/api/Cargo.toml')
-rw-r--r-- | src/api/Cargo.toml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/api/Cargo.toml b/src/api/Cargo.toml index db77cf38..ce2d11c0 100644 --- a/src/api/Cargo.toml +++ b/src/api/Cargo.toml @@ -54,9 +54,11 @@ quick-xml = { version = "0.21", features = [ "serialize" ] } url = "2.1" opentelemetry = "0.17" -opentelemetry-prometheus = "0.10" -opentelemetry-otlp = "0.10" -prometheus = "0.13" +opentelemetry-prometheus = { version = "0.10", optional = true } +opentelemetry-otlp = { version = "0.10", optional = true } +prometheus = { version = "0.13", optional = true } [features] k2v = [ "garage_util/k2v", "garage_model/k2v" ] +metrics = [ "opentelemetry-prometheus", "prometheus" ] +telemetry-otlp = ["opentelemetry-otlp"] |