我正在使用(无论如何都尝试)滚动条来处理错误日志,这就是我希望手动设置时间戳的原因
根据此处的文档 https://rollbar.com/docs/api/items_post/ 我应该能够使用带有整数(unix时间戳)传递的时间戳。但是数据没有被传递
import json, requests
payload = {
"access_token": "5m1y2f3a1k2e3t1o2k3e1n238151295b8",
"data": {
"environment": "testing",
"body": {
"message": {
"body": "Hello, world!"
}
},
"timestamp": 1460652552 # <--- does not show up on rollbar
}
}
json_encoded_payload = json.dumps(payload)
requests.post('https://api.rollbar.com/api/1/item/', data=json_encoded_payload)