Closed v-gamaar closed 5 years ago
I don't see instrumentation key specified in the TelemetryConfiguration or TelemetryClient without which no telemetry will be sent using this telemetryClient instance. If this is a Asp.Net Web Application where you have other telemetry flowing, then simply do new TelemetryClient(). It'll pick up the current Active TelemetryConfiguration.
and create pageview telemetry for every request. i.e do the following inside ABout()
var performanceTelemetry = new PageViewPerformanceTelemetry();
Hello Team
I have configured AI SDK to monitor my web application .NET 4.7 through VS 2019, the web application is sending telemetry correctly to the Application Insights resource, the problem is when I want to send custom page view telemetry using TrackPageView method.
When I use this method I can the custom telemetry in the PageView table in Log Analytics, at the beginning Y wasn't able to see this custom telemetry in the Performance blade browser section of AI due to the client_type field was by default having the value "PC" instead of "Browser" needed to display this telemetry.
After researching I could solve this issue using the property Context.Device.Type = "Browser" in my code for TrackPageView method and the custom telemetry is showed in Performance blade now.
The current problem is that this function is not filling the table BrowserTiming in Log Analytics that is used to showed more details about Page View client side performance, I have searched for information and also I tried to use the class PageViewPerformanceTelemetry to send this data with TrackPageView method but is not working. I am not sure if my code is incorrect, could you please help me to know how to field this table with TrackPageView method, here is my code:
Version Info
SDK Version : .NET .NET Version : .NET 4.7
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : Visual Studio AI SDK 2.10 OS : Windows Hosting Info (IIS/Azure WebApps/ etc) : Azure App Service Windows