User request tracing method and device based on log, equipment and medium

The invention discloses a log-based user request tracing method, device and equipment and a medium, and the method comprises the steps: responding to a login request sent by a user browser, and obtaining a user id included in a request object of the login request by a gateway; in response to a servi...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SUN SHIJUN, XU XUKANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a log-based user request tracing method, device and equipment and a medium, and the method comprises the steps: responding to a login request sent by a user browser, and obtaining a user id included in a request object of the login request by a gateway; in response to a service request initiated by a user browser, setting the user id in a request header object of the service request to obtain a service request header with the built-in user id; and the gateway sends the business request head with the built-in user id to a business application interface, and preset middleware in the business application interface obtains the user id from the business request head with the built-in user id and replaces the user id into a corresponding placeholder of the log prefix to obtain a log with user id information. According to the method and the device, the user id is set in the log, so that the operation of the corresponding user can be quickly positioned and traced during subsequent troubleshoot