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

Doctrine Dependency Logger Laravel Package

app-insights-php/doctrine-dependency-logger

Doctrine dependency logger for PHP that tracks and records Doctrine-related dependencies/events to help debug and understand runtime wiring. Useful for inspecting Doctrine configuration, service usage, and dependency resolution in apps using Doctrine ORM/DBAL.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability & Debugging: Enables deep visibility into database query performance, latency, and failures—critical for diagnosing slow endpoints, timeouts, or inefficient queries in PHP/Laravel applications.
  • Proactive Issue Resolution: Integrates with Microsoft App Insights (Azure Monitor) to log Doctrine DBAL dependencies, allowing teams to correlate database issues with application telemetry (e.g., HTTP requests, exceptions).
  • Cost-Effective Observability: Avoids building custom logging/instrumentation for Doctrine queries, reducing dev effort while leveraging existing Azure investments.
  • Compliance & Auditing: Supports tracking sensitive query patterns (e.g., PII exposure) via structured logging, aligning with security/privacy requirements.
  • Roadmap Prioritization: Justifies investment in Azure Monitor over third-party tools if the org already uses Microsoft’s stack (e.g., Azure SQL, App Services).

When to Consider This Package

  • Avoid if:

    • Your team doesn’t use Microsoft App Insights (integration is Azure-centric; alternatives like Datadog, New Relic, or OpenTelemetry collectors may fit better).
    • You need real-time query optimization (this logs after queries execute; pair with tools like Blackfire or Laravel Debugbar for proactive analysis).
    • Your app uses non-Doctrine databases (e.g., Eloquent-only, raw PDO, or other ORMs like Propel).
    • Archived status raises concerns: Verify if the package meets your long-term needs (e.g., no active maintenance for critical bugs).
    • You require distributed tracing (this logs dependencies but lacks full trace IDs; consider OpenTelemetry PHP for end-to-end tracing).
  • Consider if:

    • You’re on Laravel + Doctrine DBAL and need low-effort database telemetry.
    • Your org already pays for Azure Monitor and wants to reduce tooling sprawl.
    • Debugging intermittent DB timeouts or N+1 queries is a top priority.
    • You lack internal SRE bandwidth to build custom logging infrastructure.

How to Pitch It (Stakeholders)

For Executives: "This package lets us plug Doctrine database queries into Azure App Insights with minimal code changes—turning ‘black box’ SQL performance into actionable insights. For ~$0 in dev time, we get visibility into slow queries, timeouts, and failures, which directly reduces MTTR for critical outages. Since we’re already using Azure Monitor, this avoids vendor lock-in while cutting costs vs. third-party APM tools."

For Engineering: "If we’re already using Doctrine DBAL and App Insights, this is a 10-minute setup to log every query’s latency, success/failure, and parameters—no sampling needed. It’s lightweight (MIT-licensed), but since it’s archived, we should pair it with a backup plan (e.g., OpenTelemetry) if we scale this beyond proof-of-concept. Ideal for debugging production issues where ‘it works in dev’ isn’t an excuse anymore."

For DevOps/SRE: *"This gives us structured logs for Doctrine queries in App Insights, so we can:

  • Alert on slow queries (>500ms) via Azure Monitor.
  • Correlate DB failures with application traces (e.g., ‘this API call timed out because of a deadlock’).
  • Reduce noise by filtering out SELECT 1 queries. Tradeoff: No active maintenance, but the MIT license means we can fork if needed."*
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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui