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

Correlation Ids Monolog Laravel Package

manomano-tech/correlation-ids-monolog

Monolog processor that injects correlation IDs into every log record, with built-in support for ManoMano's correlation ID conventions and propagation, making it easy to trace requests across services in Laravel and PHP applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability roadmap: Enables correlation IDs (request/trace identifiers) to flow into every Monolog log line, so a single user request can be followed across services, queues, and workers. This is a foundational piece of any "faster incident response / better production debugging" initiative.
  • Feature-level debugging: Supports decisions around logging standards (what every log line must contain), structured logging adoption, and log-retention/alerting strategy. Correlation IDs are the minimum viable trace context for a log-aggregation stack (ELK, Loki, Datadog, etc.).
  • Build vs. buy vs. adopt: This package is a thin glue layer (a Monolog processor that injects IDs supplied by manomano-tech/correlation-ids). It is not the source of correlation IDs — it is the last-mile wiring into Monolog. The strategic decision is therefore less "buy this" and more "standardize on a correlation-ID convention and pick a maintained processor to enforce it."
  • Platform / standardization decisions: Choosing a correlation-ID approach touches API gateways (header propagation), background jobs, and service templates. This package informs the logging integration slice of that standard, not the whole design.
  • Dependency and risk decisions: With 2 stars, 0 dependents, an archived repo, and a last release in September 2018, it negatively informs build-vs-buy: adopting it introduces an unmaintained dependency for a ~30-line capability.

Bottom line for the roadmap: pursue the capability (correlation IDs in logs) as a low-effort, high-leverage observability win — but do not take a dependency on this specific archived package to deliver it.

When to Consider This Package

Consider only in narrow, legacy circumstances:

  • You are already standardized on manomano-tech/correlation-ids (the companion package this processor depends on) and need the matching Monolog integration, and you are pinned to a Monolog 1.x codebase.
  • You have a strict "no new code" policy and this is the only off-the-shelf processor matching an existing in-house convention.
  • You are doing a short-lived proof of concept and will not ship it to production.

Look elsewhere (strongly recommended) when:

  • Maintenance matters — this repository is archived with no releases since 2018 and zero dependents. No security patches, no Monolog 2.x/3.x compatibility guarantees, no support. That is an unacceptable supply-chain posture for a production logging path.
  • You need modern Monolog — current Monolog (2.x/3.x) and its Symfony/Laravel integrations are the norm; an eight-year-old processor is likely to need patching anyway.
  • You want a supported path — prefer a maintained correlation-ID processor, an OpenTelemetry-based approach, or a small in-house Monolog processor (~20–40 LOC) that reads a request/job-scoped ID and appends it to the record. The bespoke option removes the dependency entirely and is trivially testable.
  • You need propagation, not just logging — correlation IDs must be accepted from inbound headers, generated when absent, and passed to outbound calls and queued jobs. This package only covers the final logging step; scope the rest of the design regardless of which processor you choose.

Practical guidance: treat this package as a reference implementation of the pattern rather than a dependency. Read it, copy the ~30-line idea into your own codebase, and retain full control.

How to Pitch It (Stakeholders)

To executives (one paragraph): Production debugging today is slow because logs from different services can't be reliably stitched together for a single request. Adding a correlation ID to every log line is a small, low-cost change that materially shortens incident diagnosis and improves customer-facing reliability metrics (MTTR). The specific open-source package here is abandoned, so my recommendation is to deliver the same outcome with a small in-house processor (a few hours of engineering) rather than inherit an unmaintained dependency. Net: real observability value, negligible cost, no vendor risk.

To engineering leadership / architects: This package demonstrates a proven pattern — a Monolog processor that injects a correlation ID onto every record — but it is archived, last released in 2018, Monolog-1.x era, with no dependents. The capability is worth standardizing on; the artifact is not. Proposal: define the correlation-ID contract (header name, generation rules, propagation to jobs and outbound calls), then implement a small, tested Monolog processor in-house or adopt a maintained alternative. Success criteria: every log line carries a traceable ID; a single request can be reconstructed end-to-end; zero increase in third-party dependency surface.

To engineering (implementation summary): A Monolog processor is a low-risk, well-understood extension point — it wraps log records and appends context before handlers write them out. Implementation is small and testable, integrates cleanly with Laravel's logging stack, and avoids the archived package's compatibility and security unknowns. Effort: hours, not sprints.

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.
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
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