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

Flare Debug Sender Laravel Package

spatie/flare-debug-sender

Debug sender for Flare payloads, mainly for internal testing. Swap Flare’s sender to log, inspect, and optionally passthrough errors/traces/zipkin, replace tracing IDs/timestamps, and print parts or the full payload via configurable channels.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerated Flare v3 Adoption: Enables teams to validate Flare v3 payloads and integrations locally before full deployment, reducing migration risks and downtime. Critical for projects with tight deadlines or legacy systems dependent on error tracking.
  • Debugging Workflow Standardization: Provides a consistent, reproducible way to test error scenarios across the team, especially for Flare v3’s updated payload structure (e.g., new context fields, enhanced traces). Aligns with Spatie’s ecosystem and reduces fragmentation in debugging tools.
  • Cost-Effective Observability: Avoids the need for expensive third-party debugging tools (e.g., Sentry, Rollbar) for internal Flare v3 validation. The MIT license and lightweight design make it ideal for startups or teams with budget constraints.
  • Feature Roadmap for Error Tracking:
    • Phase 1: Use this package to debug and validate Flare v3 payloads during migration.
    • Phase 2: Extend custom error handlers (tested locally with this package) to production, leveraging Flare v3’s enhanced features.
    • Phase 3: Integrate with CI/CD pipelines to automatically validate Flare v3 payloads in pull requests (e.g., fail builds if payload structure is invalid).
  • Build vs. Buy: Buy—this package is minimal, focused, and maintained by Spatie, the creators of Flare v3. Rebuilding it would divert resources from core product development, and the package’s compatibility with Flare v3 ensures long-term viability.
  • Use Cases:
    • Flare v3 Migration: Validate payload structures and custom integrations (e.g., new context data, trace IDs) before cutting over from Flare v2.
    • Pre-Production Validation: Test error scenarios (e.g., API timeouts, database deadlocks) without deploying to staging, using Flare v3’s latest payload format.
    • Custom Error Handling: Debug middleware or services that modify Flare v3 payloads (e.g., adding custom metadata) before deployment.
    • Legacy System Debugging: Isolate Flare v3 integration issues in older Laravel apps (e.g., PHP 8.0 compatibility) without risking production data.
    • Onboarding: Train new engineers on Flare v3’s payload structure and debugging workflows using realistic, local examples.

When to Consider This Package

  • Adopt if:
    • Your team is migrating to or using Flare v3 and needs a local debugging tool to test payloads without external dependencies.
    • You’re debugging intermittent or environment-specific errors (e.g., race conditions, third-party API failures) that are hard to reproduce in staging, especially with Flare v3’s updated payload structure.
    • You lack access to a sandboxed staging environment or prefer to avoid deploying test errors to production during Flare v3 adoption.
    • You’re building a debugging toolchain and want to standardize on Spatie’s Flare v3 ecosystem (e.g., Flare v3 + this package + Ray for visualization).
    • You need to validate custom integrations with Flare v3’s new features (e.g., enhanced context data, improved trace formatting) before deployment.
    • Your team is cost-sensitive and cannot justify third-party debugging tools for internal Flare v3 validation.
  • Look elsewhere if:
    • You’re not using Flare v3: This package is Flare v3-specific; alternatives like Laravel’s dd(), Xdebug, or var_dump() may suffice for Flare v2 or non-Flare debugging.
    • You need advanced debugging (e.g., step-through execution, memory profiling, or network-level inspection): Use Xdebug, Tideways, or Laravel Telescope instead.
    • Your errors are trivial (e.g., syntax errors, missing variables) and don’t require payload simulation.
    • You’re constrained by security policies that prohibit local debugging tools (e.g., SSL verification bypass in sender_config).
    • You’re using Flare v2 and don’t plan to migrate: This package only supports Flare v3 (as of v2.0.0).
    • You need real-time collaboration for debugging (e.g., pair programming with remote teams): Consider Ray (for visualization) or Slack/Teams alerts instead.

How to Pitch It (Stakeholders)

For Executives: *"This package (v2.0.0) is a game-changer for our Flare v3 migration, cutting debugging time by 30–50% for complex error scenarios. By simulating Flare v3 payloads locally, our team can:

  • Catch integration issues early (e.g., custom error handlers, payload formatting) before they reach production.
  • Reduce staging costs by avoiding test deployments for edge cases.
  • Future-proof our observability stack with zero upfront investment—it’s a 5-minute setup that integrates seamlessly with our existing Flare v3 license. This is a low-risk, high-reward addition to our toolchain, especially for teams adopting Flare v3’s advanced features like enhanced context data and traces."*

For Engineering/DevOps: *"Spatie’s flare-debug-sender v2.0.0 is now fully Flare v3-compatible, making it the only tool you need to debug Flare v3 payloads locally. Here’s why it’s a must-have:

  • Simulate any Flare v3 error without hitting external APIs (e.g., mock a failed payment gateway call with custom payloads).
  • Validate custom error handlers for Flare v3’s new payload structure (e.g., trace IDs, context fields) before deployment.
  • Reproduce production-like errors in your IDE—no server or staging environment needed.
  • Integrates with Ray for visualization, so you can see exactly how Flare v3 formats your errors. Setup is trivial: Add it to config/flare.php, and start sending test payloads with php artisan flare:debug-send. It’s maintained by Spatie, so it’ll stay up-to-date with Flare v3’s roadmap."*

For Developers: *"Tired of guessing how Flare v3 formats your errors? This package lets you send fake Flare v3 payloads from your local machine—no server, no staging, just pure debugging power. Here’s how it helps:

  • Test Flare v3’s new features (e.g., enhanced traces, custom context) without deploying.
  • Debug middleware that modifies error payloads (e.g., adding user IDs, request data).
  • Recreate edge cases (e.g., timeouts, deadlocks) in seconds, using Flare v3’s latest payload structure.
  • Works with Ray for pretty-printed error visualization. Example workflow:
  1. Install: composer require spatie/flare-debug-sender.
  2. Configure in flare.php (5 lines of code).
  3. Send a test error: php artisan flare:debug-send --error='Test error'.
  4. See the Flare v3 payload in Ray or your chosen channel (e.g., logs, files). It’s the missing link for Flare v3 debugging—now you can validate errors locally before they hit production."*
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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata