App Engine Node.js: how to link app logs and requests logs
问题 I am using Node.js on App Engine Standard and Flexible. In the logs viewer, is it possible to display application logs nested inside request logs? 回答1: Yes it is possible to correlate application logs and request logs. This is the end result in the Logs Viewer: To achieve this you can either: Use both the @google-cloud/trace-agent and @google-cloud/logging-bunyan modules in your application . When you do so, your logs are automatically annotated with the correct Trace ID (see docs for Bunyan)