grpc_counters.cpp 864 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include "grpc_counters.h"
  2. namespace NGrpc {
  3. namespace {
  4. class TFakeCounterBlock final: public ICounterBlock {
  5. private:
  6. void CountNotOkRequest() override {
  7. }
  8. void CountNotOkResponse() override {
  9. }
  10. void CountNotAuthenticated() override {
  11. }
  12. void CountResourceExhausted() override {
  13. }
  14. void CountRequestBytes(ui32 /*requestSize*/) override {
  15. }
  16. void CountResponseBytes(ui32 /*responseSize*/) override {
  17. }
  18. void StartProcessing(ui32 /*requestSize*/) override {
  19. }
  20. void FinishProcessing(
  21. ui32 /*requestSize*/,
  22. ui32 /*responseSize*/,
  23. bool /*ok*/,
  24. ui32 /*status*/,
  25. TDuration /*requestDuration*/) override
  26. {
  27. }
  28. };
  29. } // namespace
  30. ICounterBlockPtr FakeCounterBlock() {
  31. return MakeIntrusive<TFakeCounterBlock>();
  32. }
  33. } // namespace NGrpc