Than where do you see two instances? From screenshot is shows one instance. It is not typical scenario to use Application Insights for apps running on mobile devices. Usually the apps will run on PaaS or VMs and will be accessed by web or mobile app from clients. When you have your app running on mobile and also using it from there you basically have the app instance and the client on one the same place but you see representation of where the app runs and from where it is accessed as different entities no matter that they are the same.
Confused about Application Map nodes
Joost
6
Reputation points
I've added Application Insights to my React Native app. When I'm looking at the Application Map, it shows two nodes, and I'm not entirely sure if this is a bug/feature or if I need to change something in my config. I was expecting there to be only one node.
Environment
react-native: 0.68.2
@microsoft/applicationinsights-web: 2.8.5
@microsoft/applicationinsights-react-native: 2.5.6
Config
Im using the below function to create/configure the client.
private configureClient(key: string): IApplicationInsights {
const client = new ApplicationInsights({
config: {
instrumentationKey: key,
extensions: [new ReactNativePlugin()],
enableCorsCorrelation: true,
autoTrackPageVisitTime: true,
disableDataLossAnalysis: false,
enableAutoRouteTracking: true,
enableRequestHeaderTracking: true,
enableResponseHeaderTracking: true,
enableAjaxErrorStatusText: true,
enableAjaxPerfTracking: true,
enableUnhandledPromiseRejectionTracking: true,
enablePerfMgr: true,
excludeRequestFromAutoTrackingPatterns: [/http:\/\/localhost/],
},
})
client.addTelemetryInitializer(envelope => {
if (!envelope.tags) envelope.tags = []
envelope.tags['ai.cloud.role'] = "Mobile App"
})
return client.loadAppInsights()
}
Application Map
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,635 questions
1 answer
Sort by: Most helpful
-
Stanislav Zhelyazkov 27,796 Reputation points MVP Volunteer Moderator
2022-12-13T11:18:06.723+00:00