How to add custom metrics and tracing events to your Shuttle application
tracing
crate.
tracing
dependency to your project:
info
level log to stdoutcounter.hello
with value 1
tracing-opentelemetry
under the hood, which automatically handles three metric types:
monotonic_counter
for values that only increasecounter
for values that can go up and downhistogram
for measuring distributions