One of the nice features of Application Insights, is the Application Map. This gives you a visual clue of all the parts of your application and their dependencies.
I blogged before on how you could tweak this application map through a custom TelemetryInitializer:
Today I want to share another option when you are using the Javascript snippet inside your web frontend.
Inside the snippet you should use the onInit callback to inject a TelemetryInitializer:
Here is the full snippet as well: