PHP-FPM slow log entires should include the request URL
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.2k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
Description
To my knowledge, it's not possible to configure PHP-FPM slow logs to contain the full request URL.
This is a major problem for web applications like WordPress that utilize a front-controller pattern, where every URL maps to a single PHP script, such as wordpress/index.php.
As far as I know, cross-referencing slow log timestamps with access log timestamps is the best workaround, which is tedious and impossible for high-traffic sites, as second granularity can be insufficient, and the subsecond timestamps of the slow log and access log may not match.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Generierung des slow-log von PHP-FPM und die beim Protokollieren einer Anfrage verfügbaren Anforderungsmetadaten nachzuverfolgen. Überprüfe, wie die slow-log-Konfiguration dargestellt wird, und definiere ein testbares Ausgabeformat für die vollständige Anfrage-URL; als erledigt gilt die Aufgabe, wenn das slow log die URL ohne Abgleich von Zeitstempeln identifiziert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, php
- Bereich
- backend, observability
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100