Table of Contents

Class MetricsHandler

Namespace
Amazon.Runtime.Internal
Assembly
AWSSDK.Core.dll

This handler manages the metrics used to time the complete call and logs the final metrics.

public class MetricsHandler : PipelineHandler, IPipelineHandler
Inheritance
MetricsHandler
Implements
Inherited Members

Constructors

MetricsHandler()

public MetricsHandler()

Methods

InvokeAsync<T>(IExecutionContext)

Captures the overall execution time and logs final metrics.

public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()

Parameters

executionContext IExecutionContext

The execution context, it contains the request and response context.

Returns

Task<T>

A task that represents the asynchronous operation.

Type Parameters

T

The response type for the current request.

InvokeSync(IExecutionContext)

Captures the overall execution time and logs final metrics.

public override void InvokeSync(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext

The execution context which contains both the requests and response context.