aeatech/snapshot-profiler-newrelic
snapshot-profiler-contracts (version compatibility unknown).aeatech/snapshot-profiler-contracts (must align versions).newrelic/newrelic-php-agent).profiling event volume via alerts.snapshot-profiler-contracts or New Relic agent?pecl install newrelic or composer).newrelic/newrelic-php-agent compatibility with Laravel’s PHP version.composer require aeatech/snapshot-profiler-newrelic
AppServiceProvider or a dedicated ProfilerServiceProvider:
use AeaTech\SnapshotProfilerNewRelic\NewRelicProfiler;
public function boot()
{
NewRelicProfiler::init();
}
NewRelicProfiler::enableForRequest(fn (Request $request) => $request->is('critical-path*'));
newrelic.ini to handle profiling data (e.g., profiling.enabled=true).snapshot-profiler-contracts and New Relic agent versions.composer.json to avoid breaking changes.README or wiki.snapshot-profiler-contracts repo or New Relic docs.profiling.error events in New Relic.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| New Relic agent crashes | Profiling data loss | Use feature flags to disable dynamically. |
| Snapshot volume exceeds quota | New Relic throttles/rejects data | Rate-limit snapshots via config. |
| Profiling corrupts APM traces | Harder to debug live issues | Test in staging; correlate with logs. |
| Laravel cache/middleware conflicts | Snapshots miss critical paths | Whitelist routes explicitly. |
How can I help you explore Laravel packages today?