Reports false from every write, the same answer a real sink gives when its
backend is unbound or metrics are switched off — so a caller that logs the
difference keeps logging it, and one that ignores it keeps working.
The natural choice for tests: asserting on what a service did rarely means
asserting on what it measured, and a sink that no-ops keeps measurement out
of the assertion.
A telemetry sink that records nothing.
Remarks
Reports
falsefrom every write, the same answer a real sink gives when its backend is unbound or metrics are switched off — so a caller that logs the difference keeps logging it, and one that ignores it keeps working.The natural choice for tests: asserting on what a service did rarely means asserting on what it measured, and a sink that no-ops keeps measurement out of the assertion.
Author
Bayu Dwiyan Satria
Version
1.0.0
Since
1.0.0