googleapis / nodejs-logging

Node.js client for Stackdriver Logging: Store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform and Amazon Web Services (AWS).
https://cloud.google.com/logging/
Apache License 2.0
172 stars 62 forks source link

fix: Correction for timestamp and instrumentation record severity fields format #1328

Closed losalex closed 2 years ago

losalex commented 2 years ago

It seems that timestamp format for log records printed to stdout are in wrong format - the right format is defined here: timestamp-processing. Worth mentioning that changing this format should be safe despite a fact that StructuredJson defined as external - it is used internally and I believe it is safe to change format of timestamp. Also instrumentation record was setting severity as number and since it should be with DEFAULT severity, removing it from instrumentation record.

Related to # 1266 🦕