Google-cloud-go: logging: document about "Grouping Logs by Request" parent.timestamp meaning

Created on 26 Sep 2019  路  5Comments  路  Source: googleapis/google-cloud-go

Client

Logging

Describe Your Environment

AppEngine/SE

Expected Behavior

grouping logs by ...
newer than parent.Timestamp, and older than parent.Timestamp + parent.HTTPRequest.Latency

Actual Behavior

older than parent.Timestamp, and newer than parent.Timestamp - parent.HTTPRequest.Latency, assuming the parent timestamp marks the end of the request.
https://github.com/googleapis/google-cloud-go/blob/1532374853c261adec6accdb86a491c45ae416d2/logging/doc.go#L124-L126

but real environment is parent.timestamp == parent.protoPayload.startTime.
I think this document's timestamp means parent.protoPayload.endTime.

log

is the document incorrect? or Is AppEngine special?
No documents other than this were found on how to group logs... 馃樋

logging docs

Most helpful comment

@vvakame I will update the docs to try and clarify the behavior. Thanks for the report.

All 5 comments

Hi @vvakame. Thanks for filing this issue. Re:

is the document incorrect?

Could you specify which document you were looking at? Is it some section in https://godoc.org/cloud.google.com/go/logging?

Yes, from Grouping Logs by Request section.
I think it's copied from https://github.com/googleapis/google-cloud-go/blob/1532374853c261adec6accdb86a491c45ae416d2/logging/doc.go#L116-L132

Thank you! I hope to investigate this and get an answer soon.

@vvakame I will update the docs to try and clarify the behavior. Thanks for the report.

Fixed by a8038f9

Was this page helpful?
0 / 5 - 0 ratings