1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
5 #ifndef ENABLE_METRICS_PREVIEW
6 # include "opentelemetry/sdk/common/attribute_utils.h"
7 OPENTELEMETRY_BEGIN_NAMESPACE
12 enum class InstrumentType
19 kObservableUpDownCounter
22 enum class InstrumentValueType
30 enum class AggregationType
39 enum class AggregationTemporality
46 struct InstrumentDescriptor
49 std::string description_
;
52 InstrumentValueType value_type_
;
55 using MetricAttributes
= opentelemetry::sdk::common::OrderedAttributeMap
;
57 /*class InstrumentSelector {
59 InstrumentSelector(opentelemetry::nostd::string_view name,
60 opentelemetry::sdk::metrics::InstrumentType type): name_(name.data()), type_(type) {} InstrumentType
61 GetType(){return type_;} std::string GetNameFilter() { return name_;}
67 } // namespace metrics
69 OPENTELEMETRY_END_NAMESPACE