Not able to get all logs in Monitor or traces table in Azure Function

Nirali Shah 156 Reputation points
2023-12-31T18:23:11.6766667+00:00

While executing a TimerTrigger based azure function, I'm not getting all logs in azure mointor/ traces table for a particular execution.

Like If in a single execution of azure functions 300 records are posted into the table, I'm getting logs upto 40-50 records only. After that logs are available in neither Monitor nor in traces table inside Application Insights.

Is there any limitation of number of logs that are displayed in Monitor or can be stored in traces table for a particular execution of Azure Function?
Can anyone help me to know the reason behind not getting all logs displayed?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,674 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,551 Reputation points Moderator
    2024-01-02T09:58:20.7033333+00:00

    Nirali Shah, Can you please answer the question below to help us understand this issue better:

    1. "If in a single execution of azure functions 300 records are posted into the table, I'm getting logs upto 40-50 records only." -- can you add more context to it? What do you mean by posting record and seeing only some of them? Are you posting records to AppInsights table?

    Note that by default, Application Insights have sampling enabled which ensures that some of the telemetry/traces are collected and some are dropped. For more details, see Sampling in Application Insights

    Based on the symptoms mentioned it could be related to Sampling in ApplicationInsights, however, more context to the issue might help us understand it better.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.