Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Cli Snapshot Profiler Newrelic Bundle Laravel Package

aeatech/cli-snapshot-profiler-newrelic-bundle

Symfony bundle for profiling CLI commands with New Relic snapshot/transactions. Supports production use, configurable via env vars, and can profile all commands or only selected command names. Requires PHP 8.2+ and the New Relic extension.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability for CLI Applications: Enables production-grade profiling of Symfony CLI commands (e.g., cron jobs, migrations, or custom scripts), filling a gap where traditional HTTP-based profiling tools (like New Relic) don’t apply. Critical for teams relying on CLI-driven workflows in production.
  • Performance Debugging: Justifies investment in profiling tools for high-impact CLI processes (e.g., batch processing, data migrations, or real-time analytics pipelines) where latency or resource usage directly impacts business metrics (e.g., order processing, reporting).
  • Build vs. Buy: Avoids reinventing wheel for New Relic CLI integration, reducing dev effort compared to custom solutions. Lowers risk of misconfiguration or incomplete feature sets.
  • Roadmap Prioritization: Aligns with initiatives to improve reliability, scalability, or cost efficiency (e.g., optimizing cloud spend for long-running CLI tasks). Supports "shift-left" observability by enabling profiling in dev/staging before production.
  • Use Cases:
    • Batch Processing: Profile slow cron jobs (e.g., nightly reports) to identify bottlenecks.
    • Data Pipelines: Monitor ETL jobs or database migrations for performance regressions.
    • Custom Scripts: Track performance of bespoke CLI tools (e.g., user provisioning, log processing).

When to Consider This Package

  • Adopt When:
    • Your team uses Symfony CLI commands in production (e.g., Symfony Console, custom scripts) and lacks observability.
    • You rely on New Relic for application monitoring and want to extend coverage to CLI workflows.
    • CLI processes are performance-critical (e.g., high memory usage, long execution times) but lack profiling tools.
    • You’re willing to invest in minimal setup (Symfony bundle + New Relic license) for production-grade insights.
  • Look Elsewhere If:
    • You’re not using Symfony or PHP CLI applications (package is Symfony-specific).
    • Your CLI tools are stateless or trivial (no need for deep profiling).
    • You prefer open-source alternatives (e.g., Xdebug, Blackfire) or vendor-agnostic tools (e.g., Datadog, Dynatrace).
    • Your New Relic license doesn’t support CLI profiling (confirm compatibility with your plan).
    • You need real-time debugging (this is for post-mortem analysis, not live profiling).

How to Pitch It (Stakeholders)

For Executives: "This package lets us profile our Symfony CLI commands in production—just like we do for web apps—using New Relic. For example, if our nightly data sync job is slowing down, we’ll finally see where the time is spent (database queries? external APIs?). This reduces fire-drills from performance issues in critical batch processes, saving ops costs and improving reliability. Setup is minimal (a Composer install + config), and it reuses our existing New Relic license. Low risk, high reward for observability."

For Engineering: *"Need to debug why your php bin/console my:long-running-job is hitting timeouts in production? This bundle hooks into New Relic to give you CLI command traces, just like for web requests. Key benefits:

  • Zero code changes: Works with existing Symfony CLI commands.
  • Production-safe: Designed for live environments (unlike Xdebug, which can’t be used in prod).
  • New Relic integration: Uses your existing license; no new costs.
  • Lightweight: Only profiles when enabled (toggle via config). Tradeoff: Limited to New Relic (but that’s already our standard). Alternative is Blackfire, but this is cheaper if you’re already paying for New Relic."*

For DevOps/SRE: *"This solves the ‘black box’ problem for CLI tools in production. Right now, if a cron job fails silently or times out, we’re blind until a user reports it. With this, we’ll get:

  • Transaction traces for CLI commands (like we have for web requests).
  • Error tracking for failed commands (if New Relic captures exceptions).
  • Baseline metrics to alert on performance degradation. Action item: Test in staging first, then enable for high-risk CLI jobs (e.g., migrations, reports)."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle