whatap 2.0.5-canary.0 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,12 @@
|
|
|
33
33
|
"Bash(GOFLAGS=-mod=mod go vet ./agent/trace/... ./agent/config/...)",
|
|
34
34
|
"Bash(echo \"vet exit: $?\")",
|
|
35
35
|
"Read(//tmp/**)",
|
|
36
|
-
"Bash(node -c lib/observers/http-observer.js)"
|
|
36
|
+
"Bash(node -c lib/observers/http-observer.js)",
|
|
37
|
+
"Bash(node -e \"console.log\\(require\\('/Users/seunghunlee/workspace/go_sample/node_modules/whatap/package.json'\\).version\\)\")",
|
|
38
|
+
"Bash(git add *)",
|
|
39
|
+
"Bash(git commit *)",
|
|
40
|
+
"Bash(git fetch *)",
|
|
41
|
+
"Bash(git push *)"
|
|
37
42
|
]
|
|
38
43
|
}
|
|
39
44
|
}
|
|
@@ -440,10 +440,16 @@ HttpObserver.prototype.__endTransaction = function (error, ctx, req, res) {
|
|
|
440
440
|
Logger.printError('WHATAP-LLM-019', 'flushPendingPacks failed', e, false);
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
|
|
444
|
-
// 실제 res.statusCode 가 에러(>=400)면 반영. (다운스트림 에러로 이미 세팅된 값은 유지)
|
|
445
|
-
if (res && res.statusCode >= 400) {
|
|
443
|
+
if (res && res.statusCode >= 400 && !ctx.error) {
|
|
446
444
|
ctx.status = res.statusCode;
|
|
445
|
+
const isStatusIgnore = shouldIgnoreError(res.statusCode, ctx.service_name, status_ignore, status_ignore_set);
|
|
446
|
+
if (transaction_status_error_enable && !isStatusIgnore) {
|
|
447
|
+
const statusError = {
|
|
448
|
+
class: res.statusMessage || ('HTTP ' + res.statusCode),
|
|
449
|
+
message: ''
|
|
450
|
+
};
|
|
451
|
+
interceptorError(res.statusCode, statusError, ctx);
|
|
452
|
+
}
|
|
447
453
|
}
|
|
448
454
|
|
|
449
455
|
ctx.start_time = Date.now();
|