]> git.feebdaed.xyz Git - 0xmirror/grpc.git/commit
Introduce UpDownCounter instrument type.
authorAananth V <aananthv@google.com>
Tue, 18 Nov 2025 08:19:54 +0000 (00:19 -0800)
committerCopybara-Service <copybara-worker@google.com>
Tue, 18 Nov 2025 08:22:36 +0000 (00:22 -0800)
commit9e24347586829ddb2ae21fefd8410c34bc51aacc
tree7e7e994da999b586bf3fab5ab07bba6045affbeb
parent8e05cf46f8717dd76b20850a5060f8f4820330c0
Introduce UpDownCounter instrument type.

This change adds a new instrument type, `UpDownCounter`, to the gRPC telemetry system. Unlike a standard `Counter`, an `UpDownCounter` can be incremented and decremented. It can be thought of as a UInt Gauge that is stored rather than being queried when the MetricsQuery is run.

PiperOrigin-RevId: 833686033
src/core/telemetry/instrument.cc
src/core/telemetry/instrument.h
src/cpp/ext/otel/otel_plugin.cc
test/core/telemetry/instrument_test.cc