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

Symfony Request Logger Laravel Package

dittto/symfony-request-logger

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability & Debugging: Enables deeper insights into external API performance (latency, failures) without custom instrumentation, reducing debugging time for distributed systems.
  • Debug Mode Enhancement: Adds structured request/response metadata (e.g., timing, payloads) to Symfony’s debug toolbar, improving developer productivity during troubleshooting.
  • Compliance & Auditing: Logs external requests centrally (via Monolog) for audit trails, especially useful for financial, healthcare, or regulated industries where API interactions must be traceable.
  • Cost Optimization: Identifies slow or failing external calls early, helping prioritize API optimizations or vendor negotiations.
  • Build vs. Buy: Avoids reinventing middleware for Guzzle logging, saving engineering time for low-value work. Justification: Open-source, minimal maintenance burden (last release 2017 but core functionality stable).
  • Roadmap Alignment: Supports initiatives like:
    • Scaling microservices with external dependencies.
    • Improving SLA compliance for APIs.
    • Building self-service debugging tools for developers.

When to Consider This Package

  • Adopt if:

    • Your Laravel/Symfony app heavily relies on external APIs (3rd-party or internal) and lacks visibility into their performance.
    • Debugging slow or failed API calls is a frequent pain point, and you need structured logs without heavy custom code.
    • You’re already using Guzzle and Monolog (or Symfony’s logging stack), as this package integrates tightly with those.
    • Your team prioritizes developer experience (e.g., debug toolbar integration) over production-grade logging (e.g., structured JSON for observability tools like ELK).
    • You’re okay with minimal maintenance (package is unmaintained but functional; fork if critical).
  • Look elsewhere if:

    • You need active maintenance, security patches, or PHP 8.x compatibility (package is outdated).
    • Your stack uses non-Guzzle HTTP clients (e.g., cURL directly, Symfony’s HttpClient without Guzzle).
    • You require advanced features like:
      • Distributed tracing (e.g., OpenTelemetry).
      • Structured logging for observability pipelines (e.g., JSON logs for ELK/Grafana).
      • Rate-limiting or retry logic (this package is logging-only).
    • Your team prefers commercial solutions (e.g., Sentry, Datadog) for APM/observability.
    • You’re using Laravel’s HTTP client (this is a Symfony bundle; Laravel alternatives like spatie/laravel-activitylog or custom middleware may fit better).

How to Pitch It (Stakeholders)

For Executives: "This package lets us automatically track and log all external API calls our app makes—think of it as a ‘black box recorder’ for HTTP requests. It’s like adding a free, lightweight ‘debug mode’ for our APIs, so when something breaks or slows down, we’ll know exactly where and why. For example, if a payment processor is timing out, we’ll see the latency in our logs and debug toolbar without writing custom code. It’s a small investment (minimal setup) with big payoffs for reliability and developer speed. Since it’s open-source and integrates with our existing logging, there’s no vendor lock-in or cost."

For Engineering: *"This Symfony bundle adds Guzzle middleware to log external requests to Monolog and appends timing/response data to the debug toolbar. It’s a drop-in solution if you’re already using Guzzle and Monolog—just configure it in services.yaml and boom, you’ve got request-level observability. Useful for:

  • Debugging: See request/response payloads and latency in the toolbar.
  • Monitoring: Centralized logs for slow/failing APIs (e.g., ‘Third-party API X failed 5x in the last hour’).
  • Auditing: Track external calls for compliance. Tradeoff: It’s unmaintained (last release 2017), but the core logic is simple. If we need PHP 8.x or active support, we’d fork it or use a commercial APM tool instead. For now, it’s a no-brainer for quick wins."*
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.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours