/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace smithy { namespace components { namespace tracing { /** * Measures a value that only ever increases. */ class SMITHY_API MonotonicCounter { public: virtual ~MonotonicCounter() = default; /** * Adds a value to counter. * @param value the count to be added to the counter. * @param attributes the attributes or dimensions associate with this measurement. */ virtual void add(long value, Aws::Map attributes) = 0; }; } } }