@@ -176,55 +176,95 @@ type Int64Counter struct{ embedded.Int64Counter }
176
176
// Add performs no operation.
177
177
func (Int64Counter ) Add (context.Context , int64 , ... metric.AddOption ) {}
178
178
179
+ // IsEnabled returns false always.
180
+ func (Int64Counter ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
181
+ return false
182
+ }
183
+
179
184
// Float64Counter is an OpenTelemetry Counter used to record float64
180
185
// measurements. It produces no telemetry.
181
186
type Float64Counter struct { embedded.Float64Counter }
182
187
183
188
// Add performs no operation.
184
189
func (Float64Counter ) Add (context.Context , float64 , ... metric.AddOption ) {}
185
190
191
+ // IsEnabled returns false always.
192
+ func (Float64Counter ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
193
+ return false
194
+ }
195
+
186
196
// Int64UpDownCounter is an OpenTelemetry UpDownCounter used to record int64
187
197
// measurements. It produces no telemetry.
188
198
type Int64UpDownCounter struct { embedded.Int64UpDownCounter }
189
199
190
200
// Add performs no operation.
191
201
func (Int64UpDownCounter ) Add (context.Context , int64 , ... metric.AddOption ) {}
192
202
203
+ // IsEnabled returns false always.
204
+ func (Int64UpDownCounter ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
205
+ return false
206
+ }
207
+
193
208
// Float64UpDownCounter is an OpenTelemetry UpDownCounter used to record
194
209
// float64 measurements. It produces no telemetry.
195
210
type Float64UpDownCounter struct { embedded.Float64UpDownCounter }
196
211
197
212
// Add performs no operation.
198
213
func (Float64UpDownCounter ) Add (context.Context , float64 , ... metric.AddOption ) {}
199
214
215
+ // IsEnabled returns false always.
216
+ func (Float64UpDownCounter ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
217
+ return false
218
+ }
219
+
200
220
// Int64Histogram is an OpenTelemetry Histogram used to record int64
201
221
// measurements. It produces no telemetry.
202
222
type Int64Histogram struct { embedded.Int64Histogram }
203
223
204
224
// Record performs no operation.
205
225
func (Int64Histogram ) Record (context.Context , int64 , ... metric.RecordOption ) {}
206
226
227
+ // IsEnabled returns false always.
228
+ func (Int64Histogram ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
229
+ return false
230
+ }
231
+
207
232
// Float64Histogram is an OpenTelemetry Histogram used to record float64
208
233
// measurements. It produces no telemetry.
209
234
type Float64Histogram struct { embedded.Float64Histogram }
210
235
211
236
// Record performs no operation.
212
237
func (Float64Histogram ) Record (context.Context , float64 , ... metric.RecordOption ) {}
213
238
239
+ // IsEnabled returns false always.
240
+ func (Float64Histogram ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
241
+ return false
242
+ }
243
+
214
244
// Int64Gauge is an OpenTelemetry Gauge used to record instantaneous int64
215
245
// measurements. It produces no telemetry.
216
246
type Int64Gauge struct { embedded.Int64Gauge }
217
247
218
248
// Record performs no operation.
219
249
func (Int64Gauge ) Record (context.Context , int64 , ... metric.RecordOption ) {}
220
250
251
+ // IsEnabled returns false always.
252
+ func (Int64Gauge ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
253
+ return false
254
+ }
255
+
221
256
// Float64Gauge is an OpenTelemetry Gauge used to record instantaneous float64
222
257
// measurements. It produces no telemetry.
223
258
type Float64Gauge struct { embedded.Float64Gauge }
224
259
225
260
// Record performs no operation.
226
261
func (Float64Gauge ) Record (context.Context , float64 , ... metric.RecordOption ) {}
227
262
263
+ // IsEnabled returns false always.
264
+ func (Float64Gauge ) IsEnabled (ctx context.Context , opts ... metric.EnabledOption ) bool {
265
+ return false
266
+ }
267
+
228
268
// Int64ObservableCounter is an OpenTelemetry ObservableCounter used to record
229
269
// int64 measurements. It produces no telemetry.
230
270
type Int64ObservableCounter struct {
0 commit comments