1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
5 #ifndef ENABLE_METRICS_PREVIEW
6 # include "opentelemetry/nostd/variant.h"
7 # include "opentelemetry/sdk/common/attribute_utils.h"
8 # include "opentelemetry/sdk/instrumentationlibrary/instrumentation_library.h"
9 # include "opentelemetry/sdk/metrics/data/point_data.h"
10 # include "opentelemetry/sdk/metrics/instruments.h"
11 # include "opentelemetry/sdk/resource/resource.h"
12 # include "opentelemetry/version.h"
14 OPENTELEMETRY_BEGIN_NAMESPACE
20 using PointAttributes
= opentelemetry::sdk::common::OrderedAttributeMap
;
21 using PointType
= opentelemetry::nostd::
22 variant
<SumPointData
, HistogramPointData
, LastValuePointData
, DropPointData
>;
24 struct PointDataAttributes
26 PointAttributes attributes
;
33 InstrumentDescriptor instrument_descriptor
;
34 opentelemetry::common::SystemTimestamp start_ts
;
35 opentelemetry::common::SystemTimestamp end_ts
;
36 std::vector
<PointDataAttributes
> point_data_attr_
;
39 } // namespace metrics
41 OPENTELEMETRY_END_NAMESPACE