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
IncludePathLabel
When set to
public bool IncludePathLabel { get; set; }
Property Value
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
SendRequestSizeMetric
Should this request send request size metric.
public bool SendRequestSizeMetric { get; set; }
Property Value
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
SendResponseTimeMetric
Should this request send response time metric.
public bool SendResponseTimeMetric { get; set; }
Property Value
Remarks
The metric is measured per attempt.