microsoft / ApplicationInsights-WordPress

Main development repository for Application Insights WordPress plugin.
MIT License
45 stars 42 forks source link

Apparent Issue with Decoupled Wordpress Installations #24

Open SgiobairOg opened 6 years ago

SgiobairOg commented 6 years ago

We have a 4.9.8 Installation running in an Azure App Service. The Application Insights plugin is installed and configured with the appropriate instrumentation key. Wordpress, in this instance, is being used only as a backend with a React application using the data via the WP Rest Api. From what we can tell, Application insights is only logging requests or errors that occur in the UI of the Worpress installation. We can see activity if we browse to /wp-admin/ for example but see nothing for any of the rest endpoints.

I'm trying to work out if we have some misconfiguration or, if the API never loads the plugin and therefore never logs any data.

dulfe commented 5 years ago

This plugin tracks hits and loading time for PAGES (as well as inserting JS code for client tracking), not endpoints used by the REST API.

It could be a good idea looking into tracking REST API calls!