How to use Azure application insight in Typescript .The already available solutions are for Angular which isn't working for me.
I tried the solution for angular , it didn't work. i used a 3rd party tool as well. it didn't work.
How to use Azure application insight in Typescript .The already available solutions are for Angular which isn't working for me.
I tried the solution for angular , it didn't work. i used a 3rd party tool as well. it didn't work.
I created a sample TypeScript application using the commands below.
I have installed the required packages below:
Using the code below, configure Application Insights with the AppInsights instrumentation key.
Code:
Use the following commands to run this TypeScript application.
Using the information below, you can find the AppInsights Instrumentation key:
Using the above code, a custom event and trace message were successfully sent to Application Insights. See below: