How can I stop the duplication of logs in Application Insights?

Charlotte Birkett 0 Reputation points
2025-08-07T16:03:25.12+00:00

I recently upgraded my function app (premium service plan) to use .NET 8 Isolated Worker Model. Since doing this, I'm receiving multiple logs for an error i.e.

  1. My custom error (which I want to keep)
  2. An error with "EventName: 0" with nothing particularly useful
  3. An Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException error which also doesn't contain anything useful

I've tried a number of different ways to remove these last two extra error logs, but have not been able to. Please can I have some help with this? The extra errors are clutter (making it difficult to track trends etc) and I'm concerned that they cost.

I've integrated OpenTelemetry and middleware to handle the logging of all errors (but I don't think these are the cause).

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

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.