This commit is contained in:
parent
ad38cf2a3b
commit
f429496edd
@ -71,10 +71,11 @@ class OpenObserveTransport extends Transport {
|
||||
})
|
||||
|
||||
try {
|
||||
// 添加时间戳字段到日志数据
|
||||
// 添加时间戳字段和环境变量到日志数据
|
||||
const logData = {
|
||||
...info,
|
||||
_timestamp: new Date().toISOString(),
|
||||
env: process.env.NODE_ENV || "unknown",
|
||||
}
|
||||
|
||||
// 压缩数据以减少传输大小
|
||||
|
Loading…
x
Reference in New Issue
Block a user