Microsoft.ApplicationInsights.Extensibility.AutocollectedMetricsExtractor
public sealed class AutocollectedMetricsExtractor : ITelemetryProcessor, ITelemetryModule, IDisposable
Extracts auto-collected, pre-aggregated (aka. "standard") metrics from telemetry.
Metric Extractors participate in the telemetry pipeline as telemetry processors. They examine telemetry items going through
the pipeline and create pre-aggregated metrics based on the encountered items. The metrics can be anything. For example, one may
choose to extract a metric for "Request Duration" from RequestTelemetry items. Or one may choose to create a metric "Cows Sold"
from specific user-tracked EventTelemetry items that contain respective information.
Metric Extractors should be placed into the pipeline after telemetry initializers and before any telemetry processors that may
perform any kind of filtering, e.g. before any sampling processors. Placing metric extractors after any filters will prevent them
from seeing all potentially relevant telemetry which will skew the extracted metrics.
This extractor is responsible for aggregating auto-collected, pre-aggregated (aka. "standard") metrics, such as failed request
count, dependency call durations and similar. Users may use the same pattern to create their own extractors for any metrics
they want from any kind of telemetry.
This extractor contains several implementations of the (internal) ISpecificAutocollectedMetricsExtractor-interface to which
it delegates the aggregation of particular metrics. All those implementations share the
same (dedicated) MetricManager-instance for metric aggregation.
namespace Microsoft.ApplicationInsights.Extensibility
{
public sealed class AutocollectedMetricsExtractor : ITelemetryProcessor, ITelemetryModule, IDisposable
{
public int MaxDependencyTypesToDiscover { get; set; }
public int MaxDependencyResultCodesToDiscover { get; set; }
public int MaxDependencyTargetValuesToDiscover { get; set; }
public int MaxDependencyCloudRoleInstanceValuesToDiscover { get; set; }
public int MaxDependencyCloudRoleNameValuesToDiscover { get; set; }
public int MaxExceptionCloudRoleInstanceValuesToDiscover { get; set; }
public int MaxExceptionCloudRoleNameValuesToDiscover { get; set; }
public int MaxTraceCloudRoleInstanceValuesToDiscover { get; set; }
public int MaxTraceCloudRoleNameValuesToDiscover { get; set; }
public int MaxRequestCloudRoleInstanceValuesToDiscover { get; set; }
public int MaxRequestCloudRoleNameValuesToDiscover { get; set; }
public int MaxRequestResponseCodeValuesToDiscover { get; set; }
public AutocollectedMetricsExtractor(ITelemetryProcessor nextProcessorInPipeline);
public void Initialize(TelemetryConfiguration configuration);
public void Process(ITelemetry item);
public void Dispose();
}
}