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

import 
InstrumentConfig contains options for instrument descriptors.
Description describes the instrument in human-readable terms.
Unit describes the measurement unit for a instrument.
InstrumentationName is the name of the library providing instrumentation.
InstrumentationVersion is the version of the library providing instrumentation.
InstrumentOption is an interface for applying instrument options.
ApplyMeter is used to set a InstrumentOption value of a InstrumentConfig.
	ApplyInstrument(*InstrumentConfig)
}
ConfigureInstrument is a helper that applies all the InstrumentOptions to an InstrumentConfig.
func ( []InstrumentOption) InstrumentConfig {
	var  InstrumentConfig
	for ,  := range  {
		.ApplyInstrument(&)
	}
	return 
}
WithDescription applies provided description.
WithUnit applies provided unit.
func ( unit.Unit) InstrumentOption {
	return unitOption()
}

type unitOption unit.Unit

func ( unitOption) ( *InstrumentConfig) {
	.Unit = unit.Unit()
}
WithInstrumentationName sets the instrumentation name.
MeterConfig contains options for Meters.
InstrumentationVersion is the version of the library providing instrumentation.
MeterOption is an interface for applying Meter options.
ApplyMeter is used to set a MeterOption value of a MeterConfig.
	ApplyMeter(*MeterConfig)
}
ConfigureMeter is a helper that applies all the MeterOptions to a MeterConfig.
func ( []MeterOption) MeterConfig {
	var  MeterConfig
	for ,  := range  {
		.ApplyMeter(&)
	}
	return 
}
Option is an interface for applying Instrument or Meter options.
type Option interface {
	InstrumentOption
	MeterOption
}
WithInstrumentationVersion sets the instrumentation version.