Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志 __time__ 属性与设备本地时间不一致 #94

Open
shaobin0604 opened this issue Nov 1, 2023 · 0 comments
Open

日志 __time__ 属性与设备本地时间不一致 #94

shaobin0604 opened this issue Nov 1, 2023 · 0 comments

Comments

@shaobin0604
Copy link

日志库版本

com.aliyun.openservices:aliyun-log-android-sdk:2.6.4

间隔 5 秒生成两条日志

第一条:

{
  "type": "default",
  "ts": "1698219747762",
  "dataschema": "1",
  "contextschema": "2",
  "__pack_meta__": "12|MTY5NDE4ODU4OTAwNzQ4ODcwOQ==|65|26",
  "__topic__": "log",
  "__source__": "Android",
  "__tag__:__client__": "FSF",
  "__tag__:__pack_id__": "30C906CEC09B9421-0",
  "__tag__:__client_ip__": "110.184.125.12",
  "__tag__:__receive_time__": "1698219761",
  "__time__": "1698219760"
}
  • 本地时间戳 ts 属性:1698219747762
  • __time__ 属性:1698219760

第二条:

{
  "type": "default",
  "ts": "1698219752783",
  "dataschema": "1",
  "contextschema": "2",
  "__pack_meta__": "12|MTY5NDE4ODU4OTAwNzQ4ODcwOQ==|65|32",
  "__topic__": "log",
  "__source__": "Android",
  "__tag__:__client__": "FSF",
  "__tag__:__pack_id__": "30C906CEC09B9421-0",
  "__tag__:__client_ip__": "110.184.125.12",
  "__tag__:__receive_time__": "1698219761",
  "__time__": "1698219760"
}
  • 本地时间戳 ts 属性:1698219752783
  • __time__ 属性:1698219760

两条日志的本地时间戳 ts 相差 1698219752783 - 1698219747762 = 5021 毫秒,符合预期。
但两条日志的 __time__ 属性 居然 完全相等

@shaobin0604 shaobin0604 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
@shaobin0604 shaobin0604 reopened this Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant