Copyright The OpenTelemetry Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

package metric
MeterMust is a wrapper for Meter interfaces that panics when any instrument constructor encounters an error.
type MeterMust struct {
	meter Meter
}
BatchObserverMust is a wrapper for BatchObserver that panics when any instrument constructor encounters an error.
Must constructs a MeterMust implementation from a Meter, allowing the application to panic when any instrument constructor yields an error.
func ( Meter) MeterMust {
	return MeterMust{meter: }
}
NewInt64Counter calls `Meter.NewInt64Counter` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  ...InstrumentOption) Int64Counter {
	if ,  := .meter.NewInt64Counter(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64Counter calls `Meter.NewFloat64Counter` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  ...InstrumentOption) Float64Counter {
	if ,  := .meter.NewFloat64Counter(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewInt64UpDownCounter calls `Meter.NewInt64UpDownCounter` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  ...InstrumentOption) Int64UpDownCounter {
	if ,  := .meter.NewInt64UpDownCounter(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64UpDownCounter calls `Meter.NewFloat64UpDownCounter` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  ...InstrumentOption) Float64UpDownCounter {
	if ,  := .meter.NewFloat64UpDownCounter(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewInt64ValueRecorder calls `Meter.NewInt64ValueRecorder` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  ...InstrumentOption) Int64ValueRecorder {
	if ,  := .meter.NewInt64ValueRecorder(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64ValueRecorder calls `Meter.NewFloat64ValueRecorder` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  ...InstrumentOption) Float64ValueRecorder {
	if ,  := .meter.NewFloat64ValueRecorder(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewInt64ValueObserver calls `Meter.NewInt64ValueObserver` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  Int64ObserverFunc,  ...InstrumentOption) Int64ValueObserver {
	if ,  := .meter.NewInt64ValueObserver(, , ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64ValueObserver calls `Meter.NewFloat64ValueObserver` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  Float64ObserverFunc,  ...InstrumentOption) Float64ValueObserver {
	if ,  := .meter.NewFloat64ValueObserver(, , ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewInt64SumObserver calls `Meter.NewInt64SumObserver` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  Int64ObserverFunc,  ...InstrumentOption) Int64SumObserver {
	if ,  := .meter.NewInt64SumObserver(, , ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64SumObserver calls `Meter.NewFloat64SumObserver` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  Float64ObserverFunc,  ...InstrumentOption) Float64SumObserver {
	if ,  := .meter.NewFloat64SumObserver(, , ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewInt64UpDownSumObserver calls `Meter.NewInt64UpDownSumObserver` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  Int64ObserverFunc,  ...InstrumentOption) Int64UpDownSumObserver {
	if ,  := .meter.NewInt64UpDownSumObserver(, , ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64UpDownSumObserver calls `Meter.NewFloat64UpDownSumObserver` and returns the instrument, panicking if it encounters an error.
func ( MeterMust) ( string,  Float64ObserverFunc,  ...InstrumentOption) Float64UpDownSumObserver {
	if ,  := .meter.NewFloat64UpDownSumObserver(, , ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewBatchObserver returns a wrapper around BatchObserver that panics when any instrument constructor returns an error.
NewInt64ValueObserver calls `BatchObserver.NewInt64ValueObserver` and returns the instrument, panicking if it encounters an error.
func ( BatchObserverMust) ( string,  ...InstrumentOption) Int64ValueObserver {
	if ,  := .batch.NewInt64ValueObserver(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64ValueObserver calls `BatchObserver.NewFloat64ValueObserver` and returns the instrument, panicking if it encounters an error.
func ( BatchObserverMust) ( string,  ...InstrumentOption) Float64ValueObserver {
	if ,  := .batch.NewFloat64ValueObserver(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewInt64SumObserver calls `BatchObserver.NewInt64SumObserver` and returns the instrument, panicking if it encounters an error.
func ( BatchObserverMust) ( string,  ...InstrumentOption) Int64SumObserver {
	if ,  := .batch.NewInt64SumObserver(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64SumObserver calls `BatchObserver.NewFloat64SumObserver` and returns the instrument, panicking if it encounters an error.
func ( BatchObserverMust) ( string,  ...InstrumentOption) Float64SumObserver {
	if ,  := .batch.NewFloat64SumObserver(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewInt64UpDownSumObserver calls `BatchObserver.NewInt64UpDownSumObserver` and returns the instrument, panicking if it encounters an error.
func ( BatchObserverMust) ( string,  ...InstrumentOption) Int64UpDownSumObserver {
	if ,  := .batch.NewInt64UpDownSumObserver(, ...);  != nil {
		panic()
	} else {
		return 
	}
}
NewFloat64UpDownSumObserver calls `BatchObserver.NewFloat64UpDownSumObserver` and returns the instrument, panicking if it encounters an error.
func ( BatchObserverMust) ( string,  ...InstrumentOption) Float64UpDownSumObserver {
	if ,  := .batch.NewFloat64UpDownSumObserver(, ...);  != nil {
		panic()
	} else {
		return 
	}