When you use the default configuration in Application Insights, the default role name (on-premise) used is the name of your Application Insights resource:
This is not that meaningful especially because right now our frontend and backend telemetry is shown together. Let’s fix this by introducing a TelemetryInitializer. In this TelemetryInitializer we update the RoleName:
- Create an initializer in both the frontend and backend project:
- Don’t forget to change the role name accordingly.
- Load this initializer in your global.asax:
· Run the application again
Remark: You’ll have to wait some time before the updated names show up on the Application map