Missing Logs in Azure Functions

Anonymous
2024-12-06T08:03:58+00:00

Despite configuring host.json as shown below, logs (traces) are still being sampled (item count exceeds 2).

Additionally, adaptive sampling has been disabled in Program.cs.

Could you help identify the cause of logs being sampled in this situation and suggest a solution?

host.json

{

  "logging": {

    "applicationInsights": {

      "samplingSettings": {

        "isEnabled": false,

        "maxTelemetryItemsPerSecond": 20,

        "excludedTypes": "Request;Exception"

      }

    }

  }

}

Windows Server Performance and maintenance

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-12-06T14:30:15+00:00

    Hello

    Thank you for posting in Microsoft Community forum.

    Based on the description, I understand your question is related to the Azure.

    Since there are no engineers dedicated to Azure in this forum. in order to be able to get a quick and effective handling of your issue, I recommend that you repost your question in the Q&A forum, where there will be a dedicated engineer to give you a professional and effective reply.

    Here is the link for Q&A forum.

    Questions - Microsoft Q&A

    Thank you for your understanding and support. If you have any question or concern, please feel free to let us know.

    Have a nice day.

    Best Regards,

    Wesley Li

    0 comments No comments