Table of Contents

Class HttpRequestMetricsOptions

Namespace
Homa.Sdk.Foundation
Assembly
Homa.Sdk.Foundation.dll

Settings for sending metrics in HTTP requests.

public class HttpRequestMetricsOptions
Inheritance
HttpRequestMetricsOptions
Inherited Members

Properties

CustomLabels

Custom labels added to the recorded metrics.

public IEnumerable<IMetricLabel> CustomLabels { get; set; }

Property Value

IEnumerable<IMetricLabel>

IncludePathLabel

When set to true, metrics will include "path" label containing path (with no query) specified in the Uri of the request.

public bool IncludePathLabel { get; set; }

Property Value

bool

Remarks

With most implementations it is recommended to disable it in requests with high path variation (like downloading files).

SendMetrics

Should this request send any metrics.

public bool SendMetrics { get; set; }

Property Value

bool

SendRequestSizeMetric

Should this request send request size metric.

public bool SendRequestSizeMetric { get; set; }

Property Value

bool

Remarks

The metric is measured is sent once per execution.

SendResponseSizeMetric

Should this request send response size metric.

public bool SendResponseSizeMetric { get; set; }

Property Value

bool

SendResponseTimeMetric

Should this request send response time metric.

public bool SendResponseTimeMetric { get; set; }

Property Value

bool

Remarks

The metric is measured per attempt.