• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

PHP agent support for Laravel

The New Relic PHP agent provides automatic instrumentation for Laravel web transactions and background transactions initiated by Laravel Queue Workers. Starting with PHP agent version 12.2.0.27, automatic instrumentation also supports background transactions initiated by Laravel Horizon Workers.

Configuration Recommendations for Laravel Horizon/Queue Support

For Laravel Horizon and Laravel Queue, set the newrelic.daemon.app_connect_timeout INI setting to 5s: INI setting to 5s:

newrelic.daemon.app_connect_timeout = 5s

Increasing this value ensures the daemon has enough time to connect to the backend when long-lived worker processes start. Network conditions might require an even higher timeout value. Configure this setting only for worker processes, because increasing the timeout can negatively impact web transaction latency.

Disabling Queue Instrumentation

Queue instrumentation is enabled by default. To disable it, add the following line to your newrelic.ini file:

newrelic.special = disable_laravel_queue
Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.