Program Listing for File drop_aggregation.h
↰ Return to documentation for file (/tmp/B.puc0r6hi/BUILD/opentelemetry-cpp-1.27.0-build/opentelemetry-cpp-1.27.0/sdk/include/opentelemetry/sdk/metrics/aggregation/drop_aggregation.h)
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <memory>
#include "opentelemetry/sdk/metrics/aggregation/aggregation.h"
#include "opentelemetry/sdk/metrics/data/point_data.h"
#include "opentelemetry/version.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace sdk
{
namespace metrics
{
class DropAggregation : public Aggregation
{
public:
DropAggregation() = default;
DropAggregation(const DropPointData &);
void Aggregate(int64_t /* value */, const PointAttributes & /* attributes */) noexcept override {}
void Aggregate(double /* value */, const PointAttributes & /* attributes */) noexcept override {}
std::unique_ptr<Aggregation> Merge(const Aggregation &) const noexcept override;
std::unique_ptr<Aggregation> Diff(const Aggregation &) const noexcept override;
PointType ToPoint() const noexcept override;
};
} // namespace metrics
} // namespace sdk
OPENTELEMETRY_END_NAMESPACE