In order to start using the library, you have to create a configuration class. You can use the make:config command:
./spark make:config Inspector
Add the configuration properties as shown in the code below:
<?phpnamespaceConfig;useCodeIgniter\Config\BaseConfig;classInspectorextendsBaseConfig{/** * set to true if you want all your controller methods to be 'auto-inspected' * set to false to set your own inspection points - provides more flexibility * * @varbool */public $AutoInspect =true;/** * application ingestion key, you can find this on your inspector dashboard * * @varstring */public $IngestionKey ='YOUR_INGESTION_KEY';/** * @varbool */public $Enable =true;/** * Remote endpoint to send data. * * @varstring */public $URL ='https://ingest.inspector.dev';/** * @varstring */public $Transport ='async';/** * Transport options. * * @vararray */public $Options = [];/** * Max numbers of items to collect in a single session. * * @varint */public $MaxItems =100;}