Make OTLP exporter optional and allow building without Prometheus exporter (/metrics) #372
No reviewers
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#372
Loading…
Reference in a 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!