WordPress DecaLog SDK is a way to use DecaLog, the free observability toolkit for WordPress, in your own plugins or themes.
You may use this SDK on all WordPress installations: if DecaLog is installed your users will take advantage of all the efforts you've made to report events and provide metrics or traces inside your plugin or theme; if DecaLog is not installed, the SDK will silently discard all these important information ...
Like DecaLog itself, this SDK is ready to be used in production environments. So you don't have to worry about cleaning up before deployment. In fact, it's a good idea to leave it in production: if the installation target runs DecaLog, the users of your plugin or themes will benefit of full observability; if it's not installed, it will be totally invisible to them.
If your plugin or theme is working on the development environment where you've installed DecaLog it will work on all your users' environments - whether DecaLog is installed or not, assuming the following requirements:
- WordPress version: 6.2 or higher
- DecaLog version: 4.0 or higher
- PHP version: 8.1 or higher
Note: as this SDK is MIT-Licensed, there is no need to worry about leaving it as is in plugins or themes you want to submit to the WordPress directory.
Thanks to composer, the installation of the sdk requires one command:
composer require perfopsone/decalog
For a full usage documentation, please go to decalog.io