Weave 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
Elastic Apm Bundle

Elastic Apm Bundle Laravel Package

firmaprofesional/elastic-apm-bundle

A Symfony bundle that integrates Elastic APM with PHP applications, making it easy to instrument requests, console commands, and services. Capture transactions, spans, errors, and performance metrics with minimal configuration and send telemetry to your Elastic APM server.

View on GitHub
Deep Wiki
Context7

firmaprofesional/elastic-apm-bundle is a Symfony bundle that integrates Elastic APM into your application, sending performance metrics, transactions, and errors to an APM Server. Built on top of the official elastic/apm-agent-php extension, it wires APM instrumentation into Symfony's request lifecycle so you can trace slow requests without manual plumbing.

  • Automatic tracing of HTTP requests, console commands, and Doctrine queries
  • Configurable transaction and span naming via Symfony configuration
  • Captures exceptions and reports them with contextual metadata
  • Service, environment, and secret token settings through config/packages
  • Lightweight integration that stays out of the way when APM is disabled
Frequently asked questions about Elastic Apm Bundle
Can I use firmaprofesional/elastic-apm-bundle in a Laravel application?
No, not directly. firmaprofesional/elastic-apm-bundle is a Symfony bundle that depends on Symfony's bundle registry, a DependencyInjection extension, and subscribers to kernel.request, kernel.response, and kernel.exception. Laravel has no equivalent bundle wiring, so the package would have to be reimplemented as a service provider, HTTP middleware, and a terminate callback. Treat it as a design reference rather than a Composer dependency.
How do I install firmaprofesional/elastic-apm-bundle?
Install it with composer require firmaprofesional/elastic-apm-bundle and register the bundle in config/bundles.php in a Symfony application. You then configure the Elastic APM server URL, service name, and related options through the bundle's configuration tree. There is no Laravel installation path because Laravel does not use Symfony bundles in that way.
Is firmaprofesional/elastic-apm-bundle still maintained?
No. Its last release was 2020-06-16, it has zero stars and zero dependents in the assessment, and it is unmaintained, so there is no security response path. The APM Server intake schema has also changed since 2020, so payloads may be rejected or silently degraded by a modern APM Server. Avoid adding it as a transitive dependency.
Which PHP and Symfony versions does elastic-apm-bundle support?
It predates PHP 8.x and current Symfony majors, so its Composer constraints are likely to conflict with a modern Laravel or Symfony composer.json. Anything on PHP 8.1 or newer would require patching before it could even install. That makes compatibility the first blocker in any Laravel evaluation.
What is the Laravel alternative to this Symfony Elastic APM bundle?
The practical Laravel alternatives are the official Elastic PHP agent (elastic/apm-agent-php) installed as a PHP extension, or OpenTelemetry PHP with an OTLP exporter pointed at Elastic APM Server. Both avoid Symfony bundle coupling. Run a short spike comparing them against a staging Laravel app before writing any custom code.
Does Elastic APM Server accept OTLP from OpenTelemetry PHP?
Yes. Elastic accepts OTLP natively, so the OpenTelemetry PHP SDK with an OTLP exporter can send traces to APM Server without Elastic-specific libraries. That gives you vendor-neutral instrumentation and is the preferred path if observability vendor is still open. Confirm the installed Elastic Stack version accepts OTLP before committing.
How do I add Elastic APM tracing to a Laravel app without this bundle?
Build a thin Laravel-native adapter: an ApmServiceProvider for config publish and a singleton client, an ApmRequestMiddleware that starts a transaction and tags route, controller, and user, and a terminable middleware that closes and flushes after the response is sent. Target Laravel 10 or 11 on PHP 8.2 or 8.3 and pin to the APM Server intake version you actually run. Only do this if both the official agent and OTel are blocked.
Can I install the Elastic APM PHP agent as an extension instead?
If you can install a PHP extension in your runtime image, use elastic/apm-agent-php instead; its auto-instrumentation removes the need for this bundle entirely. If your platform restricts you to userland Composer dependencies, the extension route is closed and OTel or a small custom adapter becomes the fallback. This is an ops decision worth settling before any porting work.
Is this package safe to use in production?
It has no production evidence, no dependents, and no maintainer, so there is no security response path and no field validation reported. Bundling it would also create Dependabot noise, audit findings, and a permanent fork obligation. For production Laravel workloads the risk is high relative to the value.
How much work is it to port this bundle's APM client to Laravel?
The assessment estimates three to four weeks including tests to extract the payload and transport logic into a Laravel package, after which you own that fork indefinitely. A two-day spike comparing the official agent and OTel should come first, because either one may eliminate the custom work. Only port the client if both options are blocked.
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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log