How can I stop the duplication of logs in Application Insights?
Charlotte Birkett
0
Reputation points
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.
- My custom error (which I want to keep)
- An error with "EventName: 0" with nothing particularly useful
- 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.
Sign in to answer