I have an ASP.NET Core 5.0 MVC web application and app insights enabled. I am trying to post application insights data to REST API, which I developed using nodejs.
My appsettings.json
details are below. Here, API got trigger, but I'm not getting any body content (Insight's data).
Please guide me. Thanks in advance.
{
"Logging": {
"ApplicationInsights": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"ApplicationInsights": {
"InstrumentationKey": "123",
"TelemetryChannel": {
"EndpointAddress": "http://localhost:3000/v2/track"
}
}
}