diff --git a/api/include/opentelemetry/metrics/meter.h b/api/include/opentelemetry/metrics/meter.h index 9f7f2d2b0a..cd176d3157 100644 --- a/api/include/opentelemetry/metrics/meter.h +++ b/api/include/opentelemetry/metrics/meter.h @@ -39,12 +39,12 @@ class Meter virtual nostd::shared_ptr> CreateLongCounter( nostd::string_view name, nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; virtual nostd::shared_ptr> CreateDoubleCounter( nostd::string_view name, nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; /** * Creates a Asynchronouse (Observable) counter with the passed characteristics and returns a @@ -60,13 +60,13 @@ class Meter nostd::string_view name, void (*callback)(ObserverResult &), nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; virtual nostd::shared_ptr> CreateDoubleObservableCounter( nostd::string_view name, void (*callback)(ObserverResult &), nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; /** * Creates a Histogram with the passed characteristics and returns a shared_ptr to that Histogram. @@ -79,12 +79,12 @@ class Meter virtual nostd::shared_ptr> CreateLongHistogram( nostd::string_view name, nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; virtual nostd::shared_ptr> CreateDoubleHistogram( nostd::string_view name, nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; /** * Creates a Asynchronouse (Observable) Gauge with the passed characteristics and returns a @@ -100,13 +100,13 @@ class Meter nostd::string_view name, void (*callback)(ObserverResult &), nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; virtual nostd::shared_ptr> CreateDoubleObservableGauge( nostd::string_view name, void (*callback)(ObserverResult &), nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; /** * Creates an UpDownCounter with the passed characteristics and returns a shared_ptr to that @@ -120,12 +120,12 @@ class Meter virtual nostd::shared_ptr> CreateLongUpDownCounter( nostd::string_view name, nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; virtual nostd::shared_ptr> CreateDoubleUpDownCounter( nostd::string_view name, nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; /** * Creates a Asynchronouse (Observable) UpDownCounter with the passed characteristics and returns @@ -141,13 +141,13 @@ class Meter nostd::string_view name, void (*callback)(ObserverResult &), nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; virtual nostd::shared_ptr> CreateDoubleObservableUpDownCounter( nostd::string_view name, void (*callback)(ObserverResult &), nostd::string_view description = "", - nostd::string_view unit = "") noexcept = 0; + nostd::string_view unit = "1") noexcept = 0; }; } // namespace metrics OPENTELEMETRY_END_NAMESPACE