@@ -137,25 +137,17 @@ class NoopMeter final : public Meter
137
137
return nostd::shared_ptr<Counter<double >>{new NoopCounter<double >(name, description, unit)};
138
138
}
139
139
140
- nostd::shared_ptr<ObservableCounter<long >> CreateLongObservableCounter (
141
- nostd::string_view name,
142
- void (*callback)(ObserverResult<long > &),
143
- nostd::string_view description = "",
144
- nostd::string_view unit = "") noexcept override
145
- {
146
- return nostd::shared_ptr<ObservableCounter<long >>{
147
- new NoopObservableCounter<long >(name, callback, description, unit)};
148
- }
140
+ void CreateLongObservableCounter (nostd::string_view name,
141
+ void (*callback)(ObserverResult<long > &),
142
+ nostd::string_view description = "",
143
+ nostd::string_view unit = "") noexcept override
144
+ {}
149
145
150
- nostd::shared_ptr<ObservableCounter<double >> CreateDoubleObservableCounter (
151
- nostd::string_view name,
152
- void (*callback)(ObserverResult<double > &),
153
- nostd::string_view description = "",
154
- nostd::string_view unit = "") noexcept override
155
- {
156
- return nostd::shared_ptr<ObservableCounter<double >>{
157
- new NoopObservableCounter<double >(name, callback, description, unit)};
158
- }
146
+ void CreateDoubleObservableCounter (nostd::string_view name,
147
+ void (*callback)(ObserverResult<double > &),
148
+ nostd::string_view description = "",
149
+ nostd::string_view unit = "") noexcept override
150
+ {}
159
151
160
152
nostd::shared_ptr<Histogram<long >> CreateLongHistogram (
161
153
nostd::string_view name,
@@ -173,25 +165,17 @@ class NoopMeter final : public Meter
173
165
return nostd::shared_ptr<Histogram<double >>{new NoopHistogram<double >(name, description, unit)};
174
166
}
175
167
176
- nostd::shared_ptr<ObservableGauge<long >> CreateLongObservableGauge (
177
- nostd::string_view name,
178
- void (*callback)(ObserverResult<long > &),
179
- nostd::string_view description = "",
180
- nostd::string_view unit = "") noexcept override
181
- {
182
- return nostd::shared_ptr<ObservableGauge<long >>{
183
- new NoopObservableGauge<long >(name, callback, description, unit)};
184
- }
168
+ void CreateLongObservableGauge (nostd::string_view name,
169
+ void (*callback)(ObserverResult<long > &),
170
+ nostd::string_view description = "",
171
+ nostd::string_view unit = "") noexcept override
172
+ {}
185
173
186
- nostd::shared_ptr<ObservableGauge<double >> CreateDoubleObservableGauge (
187
- nostd::string_view name,
188
- void (*callback)(ObserverResult<double > &),
189
- nostd::string_view description = "",
190
- nostd::string_view unit = "") noexcept override
191
- {
192
- return nostd::shared_ptr<ObservableGauge<double >>{
193
- new NoopObservableGauge<double >(name, callback, description, unit)};
194
- }
174
+ void CreateDoubleObservableGauge (nostd::string_view name,
175
+ void (*callback)(ObserverResult<double > &),
176
+ nostd::string_view description = "",
177
+ nostd::string_view unit = "") noexcept override
178
+ {}
195
179
196
180
nostd::shared_ptr<UpDownCounter<long >> CreateLongUpDownCounter (
197
181
nostd::string_view name,
@@ -211,25 +195,17 @@ class NoopMeter final : public Meter
211
195
new NoopUpDownCounter<double >(name, description, unit)};
212
196
}
213
197
214
- nostd::shared_ptr<ObservableUpDownCounter<long >> CreateLongObservableUpDownCounter (
215
- nostd::string_view name,
216
- void (*callback)(ObserverResult<long > &),
217
- nostd::string_view description = "",
218
- nostd::string_view unit = "") noexcept override
219
- {
220
- return nostd::shared_ptr<ObservableUpDownCounter<long >>{
221
- new NoopObservableUpDownCounter<long >(name, callback, description, unit)};
222
- }
198
+ void CreateLongObservableUpDownCounter (nostd::string_view name,
199
+ void (*callback)(ObserverResult<long > &),
200
+ nostd::string_view description = "",
201
+ nostd::string_view unit = "") noexcept override
202
+ {}
223
203
224
- nostd::shared_ptr<ObservableUpDownCounter<double >> CreateDoubleObservableUpDownCounter (
225
- nostd::string_view name,
226
- void (*callback)(ObserverResult<double > &),
227
- nostd::string_view description = "",
228
- nostd::string_view unit = "") noexcept override
229
- {
230
- return nostd::shared_ptr<ObservableUpDownCounter<double >>{
231
- new NoopObservableUpDownCounter<double >(name, callback, description, unit)};
232
- }
204
+ void CreateDoubleObservableUpDownCounter (nostd::string_view name,
205
+ void (*callback)(ObserverResult<double > &),
206
+ nostd::string_view description = "",
207
+ nostd::string_view unit = "") noexcept override
208
+ {}
233
209
};
234
210
235
211
/* *
0 commit comments