Create a new instrument client.
The underlying RednetClient to use for transmission
📈 Create a counter instrument.
Returns a counter that you can use to track cumulative values. The counter remembers its metadata so you don't have to repeat it.
Counter name
Human-readable description (optional)
Unit of measurement (optional)
A counter instrument
📊 Create a gauge instrument.
Returns a gauge that you can use to track current values. The gauge remembers its metadata so you don't have to repeat it.
Gauge name
Human-readable description (optional)
Unit of measurement (optional)
A gauge instrument
🎛️ Instrument-style client that sends metrics immediately.
This provides a more traditional OpenTelemetry experience where you create instrument objects once and then use them multiple times. It's built on top of the RednetClient but provides a more convenient API for repeated measurements.
Perfect when you want to create instruments once at startup and then use them throughout your application lifecycle without repeating metric metadata.
Example