ericOnline
ericOnline

Reputation: 1967

How to troubleshoot "ghost" Azure Function events?

I have Azure Application Insights enabled for an Event Grid-triggered Azure Function. Some of the App Insight events show "No results" even though the Function had an execution time of ~65 secs.

How do I troubleshoot these "ghost" events?

Example:

So... what are these events and how do I determine what happened?

Upvotes: 0

Views: 229

Answers (2)

ericOnline
ericOnline

Reputation: 1967

Coming back to this after some time... the issue was the samplingSettings listed in the Azure Function host.json file.

Specifically: Setting samplingSettings isEnabled to false.

"applicationInsights": {
            "samplingSettings": {
              "isEnabled": false,

With sampling enabled, some App Insights logs were not available. Now all appear as intended.

Upvotes: 0

user480184
user480184

Reputation:

  • If you know its not your code, check if it is one of the automatically tracked dependencies.
  • If this is happening often enough, you can open Kudu and look at streaming log as well.
  • Look at other categories of events (e.g. dependencies, custom metrics, custom events, etc.) in app insights during this period (dont just go with the generated query you get after clicking the "Run query..." button.
  • Look into child/correlated events that have a a trackable "ParentID" or a "RequestID" field. See post here.

Upvotes: 1

Related Questions