Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 为什么我的GCloud日志中的时间戳被截断为秒?_Google Cloud Platform - Fatal编程技术网

Google cloud platform 为什么我的GCloud日志中的时间戳被截断为秒?

Google cloud platform 为什么我的GCloud日志中的时间戳被截断为秒?,google-cloud-platform,Google Cloud Platform,我以JSON格式从GAE应用程序输出日志记录。除了时间戳以毫秒截断的方式显示外,所有内容都分析得很好: 我没有为我的JSON负载提供时间戳字段,我希望它会自动设置为当前时间,精度为纳秒,如中所述。显然这并没有发生,因为我只看到秒的整数值。为什么? 我还注意到,一些标准日志类别(nginx指标、就绪性检查)有时也缺乏准确性: 这个问题的发生频率远远高于从毫秒到零的ranomly预期 我的配置有什么问题会导致这两个问题?这可能与您的问题有关-是的@AlexG,它看起来与我的问题完全相同:-(

我以JSON格式从GAE应用程序输出日志记录。除了时间戳以毫秒截断的方式显示外,所有内容都分析得很好:

我没有为我的JSON负载提供
时间戳
字段,我希望它会自动设置为当前时间,精度为纳秒,如中所述。显然这并没有发生,因为我只看到秒的整数值。为什么?

我还注意到,一些标准日志类别(nginx指标、就绪性检查)有时也缺乏准确性:

这个问题的发生频率远远高于从毫秒到零的ranomly预期


我的配置有什么问题会导致这两个问题?

这可能与您的问题有关-是的@AlexG,它看起来与我的问题完全相同:-(