pkerrigan/xray
Xray is a Laravel package for adding feature flags to your app. Define flags, toggle them at runtime, and gate features in PHP or Blade without redeploying—useful for gradual rollouts, beta access, and safely shipping incomplete work.
Consider it when:
Look elsewhere when:
Executive summary: This is a small, BSD-licensed PHP library that lets our Laravel services emit traces to AWS X-Ray. It is a low-cost observability enabler—not a strategic platform bet. A pilot on one service can show whether it improves incident diagnosis and performance visibility enough to justify broader use. Guardrails: keep it behind an internal abstraction, budget modest integration/maintenance effort, and preserve an exit path to OpenTelemetry or the official AWS SDK.
Engineering summary: The package provides X-Ray instrumentation primitives; we would add Laravel middleware/service-provider integration, configure the X-Ray daemon, IAM, and sampling, and instrument key paths such as database queries, outbound HTTP, and queued jobs. Validate overhead and trace quality in a spike, wrap it behind our own tracing interface, and monitor upstream activity. If the pilot succeeds, standardize the integration pattern; if not, fall back to OpenTelemetry or the official AWS tooling without rewriting product code.
How can I help you explore Laravel packages today?