How do I nest app logs in request log and also tag it with an operation id?
Asked Answered
Y

0

7

When I use Google App Engine, I can:

  • (A) nest app logs (e.g. the info log below)
  • (B) see the summary of a request log in the top "collapsed" row
  • (C) get tags with an operation id that I can click to easily filter the log stream by

optimal gae log example

Is it possible to accomplish the same thing via the Stackdriver Logging API?

I understand I can achieve (A) via these instructions.

I can achieve (B) by either:

  • (i) adding the data to the httpRequest
  • (ii) adding it to jsonPayload and following this Googler's advice to reverse engineer what GAE does.

However, if I choose (i), the operation-id tags (C) no longer appear and if I do the latter, then (A) app log nesting stops working.

Yhvh answered 17/3, 2018 at 3:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.