小编Hen*_*rik的帖子

Application Insights 如何跟踪 User_Id?

我正在运行具有应用程序洞察力的 Azure Web 应用程序。

我知道微软无法显示真实IP(Client_IP),所以我将真实IP地址添加到所有请求(Ip)。

我有一个访客 client_id="h9zbt" 在过去 24 小时内使用 48 个不同的 client_IP 地址。

同一用户还拥有多个真实的 IPv6 地址。

我喜欢在我的网站上屏蔽这个 IP,但我觉得这看起来很奇怪。

真的是同一个用户吗?

Application Insights 如何跟踪 User_Id?

图片链接

azure azure-analysis-services

5
推荐指数
1
解决办法
2万
查看次数

Stackdriver 日志记录 - 为什么我的负载在运行时 V8 中没有正确显示

我添加了一条简单的日志消息,然后在 Stackdriver 中看到了该日志。
但有效负载不会拆分为单独的值。
问题在于有效负载显示为包含消息和有效负载的一大串。
我需要一个值列表,以便我可以查询 ex isValid 或内容。

如何将有效负载获取到 Stackdriver 日志记录中的值列表?

https://developers.google.com/apps-script/guides/logging#using_cloud_logging

// Log a JSON object at a DEBUG level. The log is labeled
  // with the message string in the log viewer, and the JSON content
  // is displayed in the expanded log structure under "jsonPayload".
  var parameters = {
      isValid: true,
      content: 'some string',
      timestamp: new Date()
  };
  console.log({message: 'Function Input', initialData: parameters});
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

更新
如果将项目降级到 ["runtimeVersion": "DEPRECATED_ES5"] 有效负载工作正常。
如果我在新的“运行时 Chrome V8”中运行项目,则有效负载不起作用。

logging google-apps-script stackdriver google-cloud-stackdriver

2
推荐指数
1
解决办法
254
查看次数