Observability
Observability
Bind SearchEventLoggerInterface to record provider successes and failures.
$this->app->bind(
\Padosoft\LaravelAiSearchProviders\Contracts\SearchEventLoggerInterface::class,
\App\Search\SearchAuditLogger::class,
);
Return type is mixed
The logger contract intentionally allows existing host application loggers to return database rows, IDs, or nothing.
Useful dimensions
- Provider
codeanddriver. - Method:
searchImagesorsearchWeb. - Result count.
- Failure message.
used_fallback.- Query metadata such as product or tenant ID.