You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal here is to create a non-public field for DependencyTelemetry and RequestTelemetry to store this meta data. So MetricAggregator will use this field, avoiding expensive Dictionary access. To avoid change in behaviour, Getter for Properties will copy the value from the internal field to the Properties Dictionary. (during serialization properties are accessed and the field is copied over to the Dictionary, but this is happens only for those items which are sampled in)
Version Info
SDK Version :
.NET Version :
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS :
Hosting Info (IIS/Azure WebApps/ etc) :
The text was updated successfully, but these errors were encountered:
AutoCollected MetricAggregator is configured as a TelemetryProcessor to be run before Sampling processors, and every item processed by it is tagged with a custom property indicating the version of the Aggregator. Accessing the
Properties
collection is expensive as its implemented as a ConcurrentDictionary.https://github.com/Microsoft/ApplicationInsights-dotnet/blob/develop/src/Microsoft.ApplicationInsights/Metrics/Extensibility/AutocollectedMetricsExtraction/AutocollectedMetricsExtractor.cs#L216
Proposal here is to create a non-public field for DependencyTelemetry and RequestTelemetry to store this meta data. So MetricAggregator will use this field, avoiding expensive Dictionary access. To avoid change in behaviour, Getter for Properties will copy the value from the internal field to the Properties Dictionary. (during serialization properties are accessed and the field is copied over to the Dictionary, but this is happens only for those items which are sampled in)
Version Info
SDK Version :
.NET Version :
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS :
Hosting Info (IIS/Azure WebApps/ etc) :
The text was updated successfully, but these errors were encountered: