Azure / azure-webjobs-sdk

Azure WebJobs SDK
MIT License
737 stars 357 forks source link

Why Host.Aggregator metrics are sent to ApplicationInsights? #2139

Open lmolkova opened 5 years ago

lmolkova commented 5 years ago

ApplicationInsights implements metrics aggregation and reports requests/duration, etc - https://docs.microsoft.com/en-us/azure/azure-monitor/app/pre-aggregated-metrics-log-metrics#pre-aggregated-metrics

Metrics are pre-aggregated on the SDK side and correct even when sampling is applied.

Functions (webjobs) additionaly report aggregated data:

image

Is it still needed and could it be replaced with standard ApplicaitonInsights metrics?

asumner commented 5 years ago

@lmolkova I'm interested in this, I'm trying to correlate function traces and this could be useful, is it used for billing? It doesn't seem very accurate, I have traces for function numbers greater than I see recorded in the host aggregator data. (I'm trying to match Function calls back to operation-Id OpenTrace/Census style Distributed Tracing).