AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
Public Member Functions | List of all members
smithy::components::tracing::OtelMeterAdapter Class Referencefinal

#include <MeterAdapters.h>

Inheritance diagram for smithy::components::tracing::OtelMeterAdapter:
[legend]

Public Member Functions

 OtelMeterAdapter (opentelemetry::nostd::shared_ptr< opentelemetry::metrics::Meter > meter)
 
Aws::UniquePtr< GaugeHandleCreateGauge (Aws::String name, std::function< void(Aws::UniquePtr< AsyncMeasurement >)> callback, Aws::String units, Aws::String description) const override
 
 
Aws::UniquePtr< MonotonicCounterCreateCounter (Aws::String name, Aws::String units, Aws::String description) const override
 
Aws::UniquePtr< HistogramCreateHistogram (Aws::String name, Aws::String units, Aws::String description) const override
 

Public Member Functions inherited from smithy::components::tracing::Meter

virtual ~Meter ()=default
 

Detailed Description

A Open Telemetry Implementation of Meter.

Definition at line 21 of file MeterAdapters.h.

Constructor & Destructor Documentation

◆ OtelMeterAdapter()

smithy::components::tracing::OtelMeterAdapter::OtelMeterAdapter ( opentelemetry::nostd::shared_ptr< opentelemetry::metrics::Meter >  meter)
inlineexplicit

Definition at line 23 of file MeterAdapters.h.

Member Function Documentation

◆ CreateCounter()

Aws::UniquePtr< MonotonicCounter > smithy::components::tracing::OtelMeterAdapter::CreateCounter ( Aws::String  name,
Aws::String  units,
Aws::String  description 
) const
overridevirtual

Create a Counter that will measure a metric that can only increase in count.

Parameters
nameThe metric name being recorded.
unitsunits The units of the measurement being recorded.
descriptionThe description of the measurement.
Returns
A Counter that can record the value of a count.

Implements smithy::components::tracing::Meter.

◆ CreateGauge()

Aws::UniquePtr< GaugeHandle > smithy::components::tracing::OtelMeterAdapter::CreateGauge ( Aws::String  name,
std::function< void(Aws::UniquePtr< AsyncMeasurement >)>  callback,
Aws::String  units,
Aws::String  description 
) const
overridevirtual

Create a Gauge instrument that will measure a provided callback function.

Parameters
nameThe metric name being recorded.
callbackThe callback function that will be recording the measurement in a async runtime.
unitsThe units of the measurement being recorded.
descriptionThe description of the measurement.
Returns
A handle to the gauge that has been created that has access to the callback being used to record the metric.

Implements smithy::components::tracing::Meter.

◆ CreateHistogram()

Aws::UniquePtr< Histogram > smithy::components::tracing::OtelMeterAdapter::CreateHistogram ( Aws::String  name,
Aws::String  units,
Aws::String  description 
) const
overridevirtual

Create a Histogram that will measure a metric that can be translated into a statistical measurement.

Parameters
nameThe metric name being recorded.
unitsunits The units of the measurement being recorded.
descriptionThe description of the measurement.
Returns
A Histogram that can measure a statistical value.

Implements smithy::components::tracing::Meter.

◆ CreateUpDownCounter()

Aws::UniquePtr< UpDownCounter > smithy::components::tracing::OtelMeterAdapter::CreateUpDownCounter ( Aws::String  name,
Aws::String  units,
Aws::String  description 
) const
overridevirtual

Create a UpDownCounter that will measure a metric that can increase/decrease in count.

Parameters
nameThe metric name being recorded.
unitsunits The units of the measurement being recorded.
descriptionThe description of the measurement.
Returns
A UpDownCounter that can record the value of a count.

Implements smithy::components::tracing::Meter.


The documentation for this class was generated from the following file: