blob: e4b1f264b10e520c4ae870e88b07ce8d1e5054d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#include <memory>
#include "opentelemetry/sdk/metrics/aggregation/aggregation.h"
#include "opentelemetry/sdk/metrics/aggregation/drop_aggregation.h"
#include "opentelemetry/sdk/metrics/data/metric_data.h"
#include "opentelemetry/sdk/metrics/data/point_data.h"
#include "opentelemetry/version.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace sdk
{
namespace metrics
{
DropAggregation::DropAggregation(const DropPointData &) {}
std::unique_ptr<Aggregation> DropAggregation::Merge(const Aggregation &) const noexcept
{
return std::unique_ptr<Aggregation>(new DropAggregation());
}
std::unique_ptr<Aggregation> DropAggregation::Diff(const Aggregation &) const noexcept
{
return std::unique_ptr<Aggregation>(new DropAggregation());
}
PointType DropAggregation::ToPoint() const noexcept
{
static DropPointData point_data;
return point_data;
}
} // namespace metrics
} // namespace sdk
OPENTELEMETRY_END_NAMESPACE
|