Priority Setup For Application Insight - azure

Currently, I am working on Telemetry client. I want to set the priority level at the code level. Can Someone help me to achieve it?

Unfortunately, it seems that Application Insight has not been able to set a priority level for the traced events so far. The client apps send synthetic requests to the web service, Application Insight works like this.
This is the feedback, you could vote it. Here is a similar issue, you could refer to it.

Related

Best practice for adding logging in azure app service and make sure not to lose any log?

I am switching my application to Azure. I have added application insight for application logging. Few more other loggings also I have added like: Web Server Logging, Detailed Error Messages and Failed Request Tracing. I want to make sure every detail is logged well. Do we have any other loggings? and What are the best practices?
One thing to remember when using applications that makes it easy to not log everything is that sampling is enabled by default in some instances, so if you want to make sure to log absolutely everything then sampling needs to be turned off, now I am not saying this is a good idea but that is a different topic.
As for the logging itself there are plenty of good tutorials on the Internet to read, and if you really want all you might need to enable diagnostic logging as well but prepare for a lot of noice.
I think it is better to really think about what logs you really ened and make sure those get injected into app insights and go from there

Application Insight : Javascript SDK

I have noticed that the user location reported via Application Insight is very unreliable.
It is reporting my location in different state, Whereas when using WhatisMyIP it is able to accurately report my location.
Why such a difference with Application Insight ?
Here is what Appliction Insight Reports:
Here is the accurate location reported by WhatIsMyIP
Application insights uses the GeoLite2 from MaxMind for IP and geolocation lookup.
And I tested it at my side by using GeoLite2 and also use WhatIsMyIP, they show me the different locations. So I guess the database for these 2 tools may different and cause this issue.
Hope it can help you.

Azure alert monitor condition always stay the same

I have implemented alerting on my infrastructure. The problem is that the monitor condidition never changes to resolve. Anyone with the same problem?
Kind regards
Summarize from the comments for others' reference:
As stackoverflowusrone mentioned, different types of alerts resolve differently and also provide a sample.
Here I provide some more information about it, we can know the alert's logic by this tutorial
By the way, if you want azure develop team add some feature, you can raise a feedback ticket on this page.

Is there a built-in method for Chrome Extensions to poll the subscription information?

We're trying to setup a referral tracking program for a chrome extension we developed. To track reoccurring subscriptions we'd like to be able to poll the Subscription Status and I was able to find google.payments.inapp.getPurchases in their documentation here: https://developer.chrome.com/webstore/payments-iap#get-purchases
I was wondering if it was possible to poll for the order number associated with the purchase. This seems to be a way to uniquely tie and track a user to a subscription and also lets us correlate the info available on pay.google.com
Any suggestions or information is appreciated! Thanks.
Response I got back from the Chrome Developer Support:
Thank you for contacting Chrome Web Store Developer Support! In
regards to your question, unfortunately, we are not supporting polling
the associated order number at the time. However, I absolutely agree
with you that it would be very helpful for our developers in the CWS.
I'll be glad to convey your message to the pertinent team to discuss
this topic.

Ensure exclusive access to webservice

Just to be on the safe side, what's the best practice to ensure that only my application has access to my webservice, which is hosted on a public server? Should I implement I shared key or something?
My webservice is hosted on Googles App Engine and my Application runs on iPhones and iPads.
If you need further information, just ask.
Thanks,
Henrik
some sort of challenge/response authentication would be your best bet, but you could use something as simple as a key that's sent with every request. it might be quite easy for someone with a packet sniffer to reverse engineer that security though - i guess the amount of time you spend on it will relate to how much you really care :)
If you require your iphone app users to enter a loginid/password, then it is trivial to achieve what you want. But I assume you don't want that ..
Without that, there is no way to ensure you app has exclusive access to your web-services. People can always sniff HTTP traffic and spoof it. People can decompile/reverse-engineer your app to figure out the key/password.
See other discussions on StackOverflow - How to restrict access to my web service? and How can I create and use a web service in public but still restrict its use to only my app?
You could program your app to only serve requests that include your iPhone's unique identier - see StackOverflow question [Unique identifier for an iPhone app]. The id could still be sniffed, so depending on your needs, you may need methods to counter that.
Well, i had similar problem. What i realized, there is no 100% solution. What i did is, i used different approach. I have implemented OAuth and SSL, of course and than make algorithm for my web service to learn behavior of my app.
I try to put that algorithm in some kind of pattern, template, so it can be used in more scenarios. It's still in developing, so here is code of simple console app that will simulate that algorithm. Hope this can help:
https://github.com/vjeftovic/LearningRESTSimulation

Resources