Skip to content

Commit 286fe4b

Browse files
committed
fix: remove context decode
1 parent f60a483 commit 286fe4b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/report.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function str2hex(str) {
1515

1616
exports.reportHttp = async function(context, { latency, method, path, statusCode }) {
1717
try {
18-
context = JSON.parse(decodeURIComponent(context))
1918
// 自定级监控上报的指标名只支持【a-zA-Z0-9_-】,所以把path进行转义上报
2019
path = str2hex(path)
2120
const ServiceType = 'monitor'

0 commit comments

Comments
 (0)