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.
4,246 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,516 Reputation points Microsoft Employee

    @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.

    0 comments No comments

0 additional answers

Sort by: Most helpful