#include <TracingUtils.h>
|
| template<typename T > |
| static T | MakeCallWithTiming (std::function< T()> func, const Aws::String &metricName, const Meter &meter, Aws::Map< Aws::String, Aws::String > &&attributes, const Aws::String &description="") |
| |
| static void | MakeCallWithTiming (std::function< void(void)> func, Aws::String metricName, const Meter &meter, Aws::Map< Aws::String, Aws::String > &&attributes, Aws::String description="") |
| |
| static void | EmitCoreHttpMetrics (const Aws::Monitoring::HttpClientMetricsCollection &metrics, const Meter &meter, Aws::Map< Aws::String, Aws::String > &&attributes, Aws::String description="") |
| |
| static std::pair< Aws::String, Aws::String > | ConvertCoreMetricToSmithy (const Aws::String &name) |
| |
A utility class for common tracing activities.
Definition at line 21 of file TracingUtils.h.
◆ TracingUtils()
| smithy::components::tracing::TracingUtils::TracingUtils |
( |
| ) |
|
|
default |
◆ ConvertCoreMetricToSmithy()
Converts the string Representation of a Core metric to a smithy metric.
- Parameters
-
- Returns
- A tuple of metric name to measurement unit.
Definition at line 148 of file TracingUtils.h.
◆ EmitCoreHttpMetrics()
Emits http metrics to a specified meter.
- Parameters
-
| metrics | A http metrics collection that we will emit. |
| meter | The meter used for metrics emissions. |
| attributes | The attributes or dimensions associate with this measurement. |
| description | The description of the measurement. |
Definition at line 123 of file TracingUtils.h.
◆ MakeCallWithTiming() [1/2]
Will run a function and emit the duration of that function in millisecond timing to the meter provided as a Histogram metrics. Will return the result af the function.
- Template Parameters
-
| T | The type that is being returned from the function. |
- Parameters
-
| func | A function that returns T. |
| metricName | The name of the metric that is being captured by the function. |
| meter | The meter making the measurement. |
| attributes | The attributes or dimensions associate with this measurement. |
| description | The description of the measurement. |
- Returns
- the result of func.
Definition at line 82 of file TracingUtils.h.
◆ MakeCallWithTiming() [2/2]
Will run a function and emit the duration of that function in millisecond timing to the meter provided as a Histogram metrics.
- Parameters
-
| func | a function that does not return anything but will be measured. |
| metricName | The name of the metric that is being captured by the function. |
| meter | The meter making the measurement. |
| attributes | The attributes or dimensions associate with this measurement. |
| description | The description of the measurement. |
Definition at line 104 of file TracingUtils.h.
◆ BYTES_PER_SECOND_METRIC_TYPE
| const char smithy::components::tracing::TracingUtils::BYTES_PER_SECOND_METRIC_TYPE[] |
|
static |
◆ COUNT_METRIC_TYPE
| const char smithy::components::tracing::TracingUtils::COUNT_METRIC_TYPE[] |
|
static |
◆ MICROSECOND_METRIC_TYPE
| const char smithy::components::tracing::TracingUtils::MICROSECOND_METRIC_TYPE[] |
|
static |
◆ SMITHY_CLIENT_DESERIALIZATION_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_DESERIALIZATION_METRIC[] |
|
static |
◆ SMITHY_CLIENT_DURATION_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_DURATION_METRIC[] |
|
static |
◆ SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC[] |
|
static |
◆ SMITHY_CLIENT_SERIALIZATION_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_SERIALIZATION_METRIC[] |
|
static |
◆ SMITHY_CLIENT_SERVICE_ATTEMPTS_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_SERVICE_ATTEMPTS_METRIC[] |
|
static |
◆ SMITHY_CLIENT_SERVICE_BACKOFF_DELAY_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_SERVICE_BACKOFF_DELAY_METRIC[] |
|
static |
◆ SMITHY_CLIENT_SERVICE_CALL_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_SERVICE_CALL_METRIC[] |
|
static |
◆ SMITHY_CLIENT_SIGNING_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_CLIENT_SIGNING_METRIC[] |
|
static |
◆ SMITHY_METHOD_AWS_VALUE
| const char smithy::components::tracing::TracingUtils::SMITHY_METHOD_AWS_VALUE[] |
|
static |
◆ SMITHY_METHOD_DIMENSION
| const char smithy::components::tracing::TracingUtils::SMITHY_METHOD_DIMENSION[] |
|
static |
◆ SMITHY_METRICS_CONNECT_DURATION
| const char smithy::components::tracing::TracingUtils::SMITHY_METRICS_CONNECT_DURATION[] |
|
static |
◆ SMITHY_METRICS_DNS_DURATION
| const char smithy::components::tracing::TracingUtils::SMITHY_METRICS_DNS_DURATION[] |
|
static |
◆ SMITHY_METRICS_DOWNLOAD_SPEED_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_METRICS_DOWNLOAD_SPEED_METRIC[] |
|
static |
◆ SMITHY_METRICS_SSL_DURATION
| const char smithy::components::tracing::TracingUtils::SMITHY_METRICS_SSL_DURATION[] |
|
static |
◆ SMITHY_METRICS_UNKNOWN_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_METRICS_UNKNOWN_METRIC[] |
|
static |
◆ SMITHY_METRICS_UPLOAD_SPEED_METRIC
| const char smithy::components::tracing::TracingUtils::SMITHY_METRICS_UPLOAD_SPEED_METRIC[] |
|
static |
◆ SMITHY_SERVICE_DIMENSION
| const char smithy::components::tracing::TracingUtils::SMITHY_SERVICE_DIMENSION[] |
|
static |
◆ SMITHY_SYSTEM_DIMENSION
| const char smithy::components::tracing::TracingUtils::SMITHY_SYSTEM_DIMENSION[] |
|
static |
The documentation for this class was generated from the following file: