Skip to content

Commit 223be51

Browse files
authored
Merge from Arcadia r15049047 Virtual CreateEncoder in TDynamicCounter… (#10205)
1 parent 887fe7f commit 223be51

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

library/cpp/monlib/dynamic_counters/page.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ void TDynamicCountersPage::Output(NMonitoring::IMonHttpRequest& request) {
105105
out.Flush();
106106
}
107107

108+
THolder<ICountableConsumer> TDynamicCountersPage::CreateEncoder(IOutputStream* out, EFormat format, TStringBuf nameLabel, TCountableBase::EVisibility visibility) const {
109+
return ::CreateEncoder(out, format, nameLabel, visibility);
110+
}
111+
108112
void TDynamicCountersPage::HandleAbsentSubgroup(IMonHttpRequest& request) {
109113
if (UnknownGroupPolicy == EUnknownGroupPolicy::Error) {
110114
NotFound(request);

library/cpp/monlib/dynamic_counters/page.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "counters.h"
44

5+
#include <library/cpp/monlib/encode/format.h>
56
#include <library/cpp/monlib/service/pages/pre_mon_page.h>
67

78
#include <util/generic/ptr.h>
@@ -46,5 +47,8 @@ namespace NMonitoring {
4647
/// If set to Error, responds with 404 if the requested subgroup is not found. This is the default.
4748
/// If set to Ignore, responds with 204 if the requested subgroup is not found
4849
void SetUnknownGroupPolicy(EUnknownGroupPolicy value);
50+
51+
protected:
52+
virtual THolder<ICountableConsumer> CreateEncoder(IOutputStream* out, EFormat format, TStringBuf nameLabel, TCountableBase::EVisibility visibility) const;
4953
};
5054
}

0 commit comments

Comments
 (0)