v0.7.4
Fixed
- Fixed
Options::$servicebeing silently ignored for any log captured without an explicit per-call service.Client::prepareEventused$event->getService() ?: $this->options->getService(), butEvent::__constructdefaults$serviceto the string'unknown', which is truthy — so the Elvis operator never fell through to the option. As a result, calls likeLogtideSdk::init(['service' => 'my-php-app'])followed bycaptureLog(...)always shippedservice: "unknown". The fallback now triggers when the event service is''or'unknown'. Closes #7.
Full Changelog: https://github.com/logtide-dev/logtide-php/blob/main/CHANGELOG.md