Skip to content

v0.7.4

Choose a tag to compare

@Polliog Polliog released this 14 Apr 11:24
· 8 commits to main since this release

Fixed

  • Fixed Options::$service being silently ignored for any log captured without an explicit per-call service. Client::prepareEvent used $event->getService() ?: $this->options->getService(), but Event::__construct defaults $service to the string 'unknown', which is truthy — so the Elvis operator never fell through to the option. As a result, calls like LogtideSdk::init(['service' => 'my-php-app']) followed by captureLog(...) always shipped service: "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