<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.Metrics.DependencyMetricsExtractor

An instance of this class is contained within the AutocollectedMetricsExtractor telemetry processor. It extracts auto-collected, pre-aggregated (aka. "standard") metrics from DependencyTelemetry objects which represent invocations of remote dependencies performed by the monitored service.

The default value for the MaxCloudRoleInstanceValuesToDiscover property.

The default value for the MaxCloudRoleNameValuesToDiscover property.

The default value for the MaxDependencyResultCodesToDiscover property.

The default value for the MaxDependencyTypesToDiscover property.

public const int MaxTargetValuesToDiscoverDefault = 125

The default value for the MaxDependencyTargetValuesToDiscover property.

public string ExtractorName { get; }

Gets the name of this extractor. All telemetry that has been processed by this extractor will be tagged by adding the string "(Name: {ExtractorName}, Ver:{ExtractorVersion})" to the xxx.ProcessedByExtractors property. The respective logic is in the AutocollectedMetricsExtractor-class.

public string ExtractorVersion { get; }

Gets the version of this extractor. All telemetry that has been processed by this extractor will be tagged by adding the string "(Name: {ExtractorName}, Ver:{ExtractorVersion})" to the xxx.ProcessedByExtractors property. The respective logic is in the AutocollectedMetricsExtractor-class.

public int MaxCloudRoleInstanceValuesToDiscover { get; set; }

Gets or sets the maximum number of auto-discovered Cloud RoleInstance values.

public int MaxCloudRoleNameValuesToDiscover { get; set; }

Gets or sets the maximum number of auto-discovered Cloud RoleName values.

public int MaxDependencyResultCodesToDiscover { get; set; }

Gets or sets the maximum number of auto-discovered dependency result codes.

public int MaxDependencyTargetValuesToDiscover { get; set; }

Gets or sets the maximum number of auto-discovered Dependency Target values.

public int MaxDependencyTypesToDiscover { get; set; }

Gets or sets the maximum number of auto-discovered dependency types.

Initializes a new instance of the DependencyMetricsExtractor class.

public void ExtractMetrics(ITelemetry fromItem, out bool isItemProcessed)

Extracts appropriate data points for auto-collected, pre-aggregated metrics from a single DependencyTelemetry item.

public void InitializeExtractor(TelemetryClient metricTelemetryClient)

Pre-initialize this extractor.