proxy.golang.org : github.com/mikemackintosh/pallet
Package pallet offers a clean and simple stackdriver logging interface for google services. To group all the log entries written during a single HTTP request, create two Loggers, a "parent" and a "child," with different log IDs. Both should be in the same project, and have the same MonitoredResource type and labels. - Parent entries must have HTTPRequest.Request populated. (Strictly speaking, only the URL is necessary.) - A child entry's timestamp must be within the time interval covered by the parent request. (i.e., before the parent.Timestamp and after the parent.Timestamp - parent.HTTPRequest.Latency. This assumes the parent.Timestamp marks the end of the request.) - The trace field must be populated in all of the entries and match exactly. You should observe the child log entries grouped under the parent on the console. The parent entry will not inherit the severity of its children; you must update the parent severity yourself.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/mikemackintosh/pallet
License: Apache-2.0
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: github.com/mikemackintosh
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago