Make OTLP exporter optional and allow building without Prometheus exporter (/metrics) #372
No reviewers
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#372
Loading…
Reference in New Issue
No description provided.
Delete Branch "jirutka/garage:telemetry-and-metrics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Please see commit messages.
Thanks for making this, it's pretty much what I imagined. There's just a small issue with the
warn!
when OTLP is disabled (see below). Also if you have the opportunity of runningcargo fmt
and checking thecargo clippy
lints, that would be nice (depending on your Clippy version, it might report a bunch of lints aboutEq
/PartialEq
which we don't care about).We also need to update the
.nix
files to integrate this with our CI but I can do it myself.@ -41,1 +45,4 @@
init_tracing(&export_to, garage.system.id)?;
#[cfg(not(feature = "telemetry-otlp"))]
warn!("Garage was built without OTLP exporter, admin.trace_sink is ignored.");
Looks like this will never be called because we are in a
#[cfg(feature = "telemetry-otlp")]
blockChanged to merge this into #373 (a temporary branch where I'll do the Nix shenanigans). This caused a conflict in
src/garage/Cargo.toml
because of #370.a095c831fc
to75b11bdfc1
75b11bdfc1
toea36b9ff90
Okay, I fixed it and rebased against the
improve-deps
branch.Thanks for your contribution!