Google Cloud Trace 192.168.1.1 [英] Google Cloud Trace 192.168.1.1

查看:198
本文介绍了Google Cloud Trace 192.168.1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Google云端控制台的跟踪页面,我可以看到地址192.168.1.1,这需要很长时间才能执行。这是什么地址?来自哪里?它来自内部云的基础架构吗?或者它是我的本地地址(如果可能的话)?

In the Trace page of Google Cloud Console I can see address 192.168.1.1 which takes a lot of time to execute. What is this address? From where? Is it from internal cloud's infrastructure? Or is it mine local address (if it possible)?

推荐答案

.1.1就是Google Cloud Function启动的机器IP地址。但有趣的是,只有在代码中包含 console。* 的东西时才会显示此地址。因此,例如我使用 console.log 来记录Google云端日志记录。

After talk with Google Cloud Support appears that 192.168.1.1 is exactly machine IP address on which Google Cloud Function is launched. But the interesting thing is that this address only appears if console.* things are in the code. So, for example I'm using console.log to log something with google cloud logging.

屏幕截图有几个这个地址的调用。在顶部,我们可以看到长时间的生活呼叫,这个呼叫是保持console.log连接。并且,例如,上次通话只持续3ms,并立即关闭。这个console.log在请求结束时被调用了。

And on the screen shot there are several calls of this address. In the top we can see long living calls, this calls are with kept console.log connection. And, for example last call lasts only 3ms and immediately closed. This console.log has been called right in the end of the request.

希望它可以帮助别人。

这篇关于Google Cloud Trace 192.168.1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆