Azure Application Insights not working properly for React Native - azure

I'm working on a React Native project and would like to integrate Azure Application Insights.
I have followed the official documentation provided here:
https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-react-native-plugin
While Application map displays request counts with relevant nodes further details on insights are not visible on clicking on the counts.
Also when it comes to Performance, Operations does not display any data while in Dependencies does.

Thank you ZakiMa. I am posting your discussion as answer as it will benefit other community users.
Operations are not visible because for Browser telemetry maps to
PageViews. But for Single Page Apps, whole app will be represented as
one PageView. Application Map doesn't show any transitions as there is
no data for main node.

Related

How to list all app services in google cloud platform using python API

I'm trying to write a simple python code to list out the app services in google-cloud-platform ,
In command prompt i'm able to list it by passing the below command
gcloud app services list
When i searched in stack overflow and other websites i couldn't find any piece of code that can list me app services . Any information related this will be thankful. Thanks in advance
One possibility is to use the Admin API, for example by making HTTP requests to its REST apps.services.list method:
Lists all the services in the application.
HTTP request
GET https://appengine.googleapis.com/v1beta/{parent=apps/*}/services
Or you can always fallback to plain invoking from your python code the same commands that you can run manually and process their outputs, for example via subprocess.Popen().
As you have mentioned that you were unable to find a proper documentation to list out the services or the versions for an application in the Google Cloud Platform, for requests regarding documentation modification you can definitely provide a feedback on the documentation page and we would definitely provide as much information as possible.
Regarding the question, I would have to agree with the previously mentioned solution posted by Mr. Dan Cornilescu, also for further clarification you would be able to call the Admin API that would create a HTTP requests to the REST and provide the List of services of an application. On the top of that you can also request a call to List of versions under the service of an application.
Over there if you could provide the requested parameters under the parent section (for your case your application name after 'app/') and execute (at the bottom) the call using your preferred authentication to request the list of services.
You can also click on the icon on the top right corner to able to go to following page where it provides the functions and the method calls in JavaScript. We would try our best to update the calls in Python as well. Thank you so much.

Set up Google Analytics to track a command line Node app

I'd like to use Google Analytics to track usage of a command line Node app. Tracking will be strictly opt-in. I'd like to track basic usage, plus which operating system and version of Node was used.
I've found the Measurement Protocol, but I'm wondering whats the best way to set up Google Analytics.
You can choose from Web or App - App seems the best fit, but then I'm sent to Firebase to set up an iOS, Android or Web app. None of these are correct. So is 'Web' the best way to track my app usage? Or is Google Analytics not the right approach?
Seems like the best approach is Google Measurement Protocol. There's a Node library for it.
Really Google Analytics is completely designed around web apps and more recently mobile apps, it has concepts like "page views" which don't make sense for CLIs, and Firebase Analytics is only for Android and iOS.
You might be able to shoehorn he CLI use case for some purposes. Alternatively, you could consider using a cloud database like Firebase real-time DB to capture your own events.
Google analytics really isnt designed for something like this. You have only two options web app where everything is page based. http://example.com/hello.php vs using a mobile app where everything is screen based. Home, about, help.
I have done this before with several console applications, a custom SSIS task (dll) and an arduino project. I chose mobile application mainly because i thought it was closer. I know of someone who did the same with an actions on google project.
In the end what you use will be up to you. Just consider what it is you want to track exactly and lay it out before you start.
If you choose mobile make sure you send Screen views and not page views. The Google analytics website is split you cant mix and match the hit type.
Workaround for createing moble account without firebase.
create a new web property on Google analytics type Web
create a new view under that web property type mobile.
We made Console Cat for this exact purpose! It's built from the ground up to track telemetry / analytics for CLIs including things like flags, command duration, version, etc.

White-Label a UWP Application

I am about to start development on an UWP Application. One of the last minute requirements was to be able to support white-labeling the application for our partners. Does anyone have any experience doing this using the Universal Windows Platform that would be willing to give me some insight on resources I should be looking at?
Some basic questions I have is:
Is it possible? I read about it being done with iOS and Android.
How do you create the AppPackage for each partner?
Localization differences? Where one localization may refer to it as one product, but another refers to it as the other product.
Or is this something where I would bundle everything up and send it to the partner to create their own upload? If this is the case, is there a how-to on that?
Some of these might be basic questions, but this is the first time I have created a white-label application, so it is all new to me.
Have just replied to another one topic and looks that screenshot is still needed)
When you submit App to store you can find option:
This way you can make your app visible only to your partners. And you can also register as many apps as you like (each one for separate partner)
Or you can distribute your app thrue Windows Store for Business.
Take a look also at this link, it might be helpful for you
Distribute LOB apps to enterprises

Showing Azure WebJob Functions log using API (Kudu)

I am using Kudu Api to display some webjob data on a website monitoring app I created. The web app monitors data from a few other websites I created. I was wondering what API endpoints do I need to run in order to get the data from this page:
https://{my_website}.scm.azurewebsites.net/azurejobs/#/functions
I am interested in displaying some of the data from this page (functions, statistics, Invocation Log - Recently executed functions)
At the moment I am parsing a text file, but I find this highly inefficient if there's a better option available:
https://{my_website}.scm.azurewebsites.net/vfs/data/jobs/continuous/{my_webjob}/job_log.txt
Any suggestions would help, thanks in advance.
As written in comments the WebJob client is javascript based you can see every call it makes in the console of your browser, there you will find a call to:
https://<sitename>.scm.azurewebsites.net/azurejobs/api/functions/definitions?lim‌​it=100
This give a list of the functions in the webjob.

API for Mobile web app development

I am trying to build a mobile web app using worklight .I checked the IBM website but they have limited documentation on it.I wanted to know is there any inbuilt API provided by IBM in order to develop the mobile web app?
I am specifically looking for API to to control the refresh button and the back button in mobile web browser
Why limited? Where did you look? There is comprehensive user documentation and training modules in the following websites:
IBM Worklight Getting Started training modules
IBM Worklight user documentation: client-side JavaScript API reference
Regardless, there is no such thing as "controlling a browser's Back and Refresh buttons".
These buttons are provided by the mobile browser and are out of scope for whatever is running within.
It would be more beneficial for you to edit the question and explain your specific scenario - what it is that you are actually trying to accomplish.
In Worklight, you have WL.Client.reloadApp, for example, which can be used to refresh the web resources displayed. As for "back button"-like functionality, this can only be determined once you explain what you are trying to accomplish.
Additionally, keep in mind that while Worklight provides some API methods for controlling UI elements, it does so only to a certain degree and only for elements that are most common to all mobile environments (iOS, Android, ... for example, creating a tabbar); when you develop a web app for the Mobile Web environment, you cannot control via the app things like the Refresh button that the mobile browser supplies.
Lastly, you can and probably should opt to 3rd party frameworks such as jQuery Mobile and the like for the UI aspect in your Worklight application.

Resources