Skip to content

v2.3.0

Choose a tag to compare

@johndodev johndodev released this 16 Oct 09:23
· 11 commits to 2.x since this release

Changed

  • BREAKING: php-http/discovery and the PSR-18/PSR-17 implementations are no longer required, so the collectors install without any HTTP client. To keep sending metrics, run composer require symfony/http-client nyholm/psr7 or composer require php-http/discovery, or pass your own PSR-18 client.
  • Jmonitor builds its HTTP client on the first send, so collect(send: false) needs none, even with an API key.

Added

  • Without php-http/discovery, symfony/http-client sends the metrics, and nyholm/psr7 builds the requests of a client given to the constructor.
  • MissingHttpClientException is thrown, telling what to install, when no HTTP client is available to send the metrics.