Skip to content

Commit a3f75dd

Browse files
committed
fix: 上报增加100ms超时
1 parent 50e2da5 commit a3f75dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
"semantic-release": "^17.0.4"
7070
},
7171
"dependencies": {
72-
"@tencent-sdk/capi": "0.2.15"
72+
"@tencent-sdk/capi": "^0.2.16"
7373
}
7474
}

src/report.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ exports.reportHttp = async function(context, { latency, method, path, statusCode
5050
}
5151
const debugOptions = {
5252
debug: false,
53-
host: 'monitor.tencentcloudapi.com'
53+
host: 'monitor.tencentcloudapi.com',
54+
timeout: 100
5455
}
5556

5657
const keyPrefix = `${method}_${path}`

0 commit comments

Comments
 (0)