You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analysis to see if it is possible to use azure application insight.
First, there was an investigation of how ckanext-googleanalytics works:
A track id is generated which is firstly added to the page header
Ckanext google analytics provides a custom function that is used to wrap all action functions and resource API
Each API events are stored as a dictionary and sent to gooogleanalytics
There is functionality to store event data from google analytics in package_stats and resource_stats table for easy query to enable download stats display
This investigation is used to guide what to look for in Azure application insight
To use azure application insight we need to:
Setup application insights resource
Obtain the credential key which will be used with Azure SDK
Download Opencesus Python SDK
Experiment with how to use this SDK to intercept API and emit results to the azure application monitor and also receive updates from the application monitor.
The flask middleware can track incoming requests sent to the app, but no doc to sure how to create a custom tracking event as it is possible in google analytics. The custom event enables us to store events like a dictionary since we have different packages with resources, the custom event makes it possible to receive data for each of these packages.
No detailed documentation, and no lot of examples on how to use the package. Google analytics seems to be the most used and easy to get more information on.
But with more experiments and testing we can figure out how to use it for our main purpose.
Acceptance
Task
The text was updated successfully, but these errors were encountered: