@Casper Rubæk You would have to either leverage structured logging to include properties into your logs that show up as customDimensions for each entry or better yet setup custom telemetry and set properties in the context for all logs (as shown in this SO answer). These will be included with trace events.
Application Insights Transaction Trace custom properties
Casper Rubæk
246
Reputation points
I am trying to send custom properties as Ilogger params objects to Application Insights, but the code is not working.
How should the Ilogger code be implemented to achieve this?
The code looks like this in my function app:
The composition of Ilogger.LogCritical looks like this:
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Answer accepted by question author
-
Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator2021-06-25T13:13:22.127+00:00