Azure / wordpress-linux-appservice

MIT License
111 stars 71 forks source link

Application Insights #168

Open pauljohnstone opened 3 months ago

pauljohnstone commented 3 months ago

Any update on this plugin, I see that the repo has been archived. Are there any plans to update this on the roadmap? "This repository has been archived by the owner on Oct 12, 2022. It is now read-only."

https://github.com/microsoft/ApplicationInsights-WordPress

Error Details

An error of type E_ERROR was caused in line 47 of the file /var/www/wordpress/wp-content/plugins/application-insights/src/Server_Instrumentation.php. Error message: Uncaught TypeError: ApplicationInsights\WordPress\Server_Instrumentation::exceptionHandler(): Argument #1 ($exception) must be of type Exception, Error given in /var/www/wordpress/wp-content/plugins/application-insights/src/Server_Instrumentation.php:47 Stack trace:

0 [internal function]: ApplicationInsights\WordPress\Server_Instrumentation->exceptionHandler(Object(Error))

1 {main}

thrown

ZubaeyrMSFT commented 3 months ago

Hello @pauljohnstone, thanks for reaching out. The plugin you are referring is owned by Application Insights team and it seems that there are no future plans to support it again.

We will try to get back to you with documentation by end of August.

ZubaeyrMSFT commented 3 months ago

@bmanjwani, is there any documentation for integrating Application Insights with WordPress?

karpikpl commented 2 months ago

hey @ZubaeyrMSFT - could we use https://learn.microsoft.com/en-us/azure/app-service/tutorial-custom-container-sidecar OTEL Exporter to get logs from PHP into App Insights?

MrWhiteABEX commented 2 months ago

I did not try it myself but due to Application Insights supporting Open Telemetry one could try this or this

karpikpl commented 2 months ago

I think that still requires

  1. changing the docker image that app service team manages
  2. using a collector (that will get OTEL telemetry and export them to App Insights) - this is where a side car could help