Class MeterConfig
Defined in File meter_config.h
Class Documentation
-
class MeterConfig
MeterConfig defines various configurable aspects of a Meter’s behavior. This class should not be used directly to configure a Meter’s behavior, instead a ScopeConfigurator should be used to compute the desired MeterConfig which can then be used to configure a Meter.
Public Functions
-
bool operator==(const MeterConfig &other) const noexcept
-
bool IsEnabled() const noexcept
Returns if the Meter is enabled or disabled. Meters are enabled by default.
- Returns:
a boolean indicating if the Meter is enabled. Defaults to true.
Public Static Functions
-
static MeterConfig Disabled()
Returns a MeterConfig that represents a disabled Meter. A disabled meter behaves like a no-op meter.
- Returns:
a static constant MeterConfig that represents a disabled meter.
-
static MeterConfig Enabled()
Returns a MeterConfig that represents an enabled Meter.
- Returns:
a static constant MeterConfig that represents an enabled meter.
-
static MeterConfig Default()
Returns a MeterConfig that represents a Meter configured with the default behavior. The default behavior is guided by the OpenTelemetry specification.
- Returns:
a static constant MeterConfig that represents a meter configured with default behavior.
-
bool operator==(const MeterConfig &other) const noexcept