NVIDIA DeepStream SDK API Reference

9.2 Release
includes/opentelemetry/sdk/metrics/meter_config.h
Go to the documentation of this file.
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include "opentelemetry/version.h"
7 
9 namespace sdk
10 {
11 namespace metrics
12 {
20 {
21 public:
22  bool operator==(const MeterConfig &other) const noexcept;
23 
28  bool IsEnabled() const noexcept;
29 
35  static MeterConfig Disabled();
36 
41  static MeterConfig Enabled();
42 
49  static MeterConfig Default();
50 
51 private:
52  explicit MeterConfig(const bool disabled = false) : disabled_(disabled) {}
53  bool disabled_;
54 };
55 } // namespace metrics
56 } // namespace sdk
OPENTELEMETRY_EXPORT
#define OPENTELEMETRY_EXPORT
Definition: includes/opentelemetry/common/macros.h:386
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition: includes/opentelemetry/version.h:21
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition: includes/opentelemetry/version.h:24
ds3d::operator==
bool operator==(const Shape &a, const Shape &b)
Definition: includes/ds3d/common/func_utils.h:184
sdk
Definition: includes/opentelemetry/sdk/common/atomic_shared_ptr.h:13
metrics
Definition: includes/opentelemetry/metrics/async_instruments.h:10
sdk::metrics::MeterConfig
MeterConfig defines various configurable aspects of a Meter's behavior.
Definition: includes/opentelemetry/sdk/metrics/meter_config.h:19