ias/newrelic-logger-bundle
A Symfony bundle that integrates New Relic logging with your application's Monolog setup, forwarding log records to New Relic for centralized visibility and analysis. Simplifies configuring a New Relic log handler so you can correlate application events with observability data without custom wiring.
trace.id, span.id, entity linking) is what turns log search into a debugging workflow. That's a decision about incident MTTR and on-call ergonomics with a measurable target — not an infra footnote.config/logging.php driver, no auto-discovery. Its decision value for a Laravel team is largely negative: it confirms the integration is framework-agnostic at the Monolog layer, so the Laravel answer is a Monolog handler plus the official New Relic PHP agent.Consider reading it — not adopting it. With zero stars, zero dependents, and an archived repository, this is a reference implementation worth about fifteen minutes: it documents the New Relic Logs ingestion contract (payload shape, endpoint/region variants, entity enrichment, handler construction). Treat it as a specification, never as a dependency.
Adoption criteria it fails — and that any replacement must pass:
ServiceProvider, no logging channel driver, no Laravel ergonomics.newrelic/monolog-enricher plus agent forwarding) covers the same ground with a vendor support contract and a security response process.Look elsewhere if: you're on Laravel (use the official agent-based path), you need Logs-in-Context correlation, you require vendor support or a security SLA, or you need any of the governance controls above. Consider the pattern only as a baseline when evaluating a polyglot estate that still runs legacy Symfony services.
To executives: We evaluated a community bundle for shipping application logs into New Relic. Recommendation: do not adopt it. It is archived, has no users, and receives no security updates — the cost of owning abandoned code in our request path far exceeds the one to two engineer-days it might save. The underlying integration is small and well understood: we can reach the same outcome on the vendor-supported path (New Relic PHP agent plus a standard Monolog handler) for a bounded, one-to-two-day effort per service. That delivers the actual business outcome — logs correlated with traces in a single tool, faster incident diagnosis, lower MTTR — without adding an unmaintained dependency.
To engineering: Keep the pattern, drop the dependency. The value here is the specification: a Monolog handler that batches records to the New Relic Logs API and stamps them with trace and span identifiers so logs link back to APM entities. Implement that against the official agent and the vendor's handler — or, only if agent installation is genuinely blocked, port the handler class into app/Logging/ behind a Laravel custom channel with a StreamHandler fallback, a sub-second timeout, a circuit breaker, and tests asserting the JSON envelope. Own the config in-repo, pin PHP and Monolog 3 versions, and treat log level, sampling, credential rotation, and PII redaction as first-class review items rather than defaults inherited from a dead library.
How can I help you explore Laravel packages today?