whatap 2.0.4 → 2.0.5-canary.0

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.
@@ -20,7 +20,20 @@
20
20
  "Bash(docker info *)",
21
21
  "Bash(docker system *)",
22
22
  "Bash(sshpass -p 'Wh@1410X2' ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 whatap@192.168.100.21 'echo \"접속 OK: $\\(whoami\\)@$\\(hostname\\)\"; echo \"arch: $\\(uname -m\\)\"; docker --version 2>&1 | head -1; echo \"docker 권한: $\\(docker ps >/dev/null 2>&1 && echo ok || echo \"sudo 필요/불가\"\\)\"')",
23
- "Bash(sshpass -p Wh@1410X2 ssh -o StrictHostKeyChecking=no whatap@192.168.100.21 ' *)"
23
+ "Bash(sshpass -p Wh@1410X2 ssh -o StrictHostKeyChecking=no whatap@192.168.100.21 ' *)",
24
+ "Bash(git log *)",
25
+ "Bash(sed -n '/urls := stringutil.Tokenizer\\(this.conf.TraceNormalizeUrls/,/^\tthis.restUrlTable = pathTreeTmp/p' agent/trace/ServiceURLPatternDetector.go)",
26
+ "Bash(sed -n '/func \\(this \\\\*ServiceURLPatternDetector\\) Normalize/,/^}/p' agent/trace/ServiceURLPatternDetector.go)",
27
+ "Bash(sed -n '/type ServiceURLPatternDetector struct/,/^}/p' agent/trace/ServiceURLPatternDetector.go)",
28
+ "Bash(sed -n '/p := new\\(ServiceURLPatternDetector\\)/,/p.Build\\(false\\)/p' agent/trace/ServiceURLPatternDetector.go)",
29
+ "Bash(GOFLAGS=-mod=mod go build ./agent/trace/...)",
30
+ "Bash(echo \"build exit: $?\")",
31
+ "Bash(GOFLAGS=-mod=mod go build ./...)",
32
+ "Bash(echo \"전체 build exit: $?\")",
33
+ "Bash(GOFLAGS=-mod=mod go vet ./agent/trace/... ./agent/config/...)",
34
+ "Bash(echo \"vet exit: $?\")",
35
+ "Read(//tmp/**)",
36
+ "Bash(node -c lib/observers/http-observer.js)"
24
37
  ]
25
38
  }
26
39
  }
Binary file
Binary file
Binary file
package/build.txt CHANGED
@@ -1,4 +1,4 @@
1
1
  app = 'NodeJS'
2
2
  name = 'whatap_nodejs'
3
- version = '2.0.3'
4
- build_date = '20260706'
3
+ version = '2.0.4'
4
+ build_date = '20260708'
@@ -314,6 +314,7 @@ function initCtx(call, methodName) {
314
314
  return null;
315
315
  }
316
316
 
317
+ ctx.status = 200;
317
318
  // gRPC 메타데이터에서 정보 추출
318
319
  try {
319
320
  if (call.metadata) {
@@ -265,6 +265,7 @@ function initCtx(req, res) {
265
265
  return null;
266
266
  }
267
267
 
268
+ ctx.status = 200;
268
269
  // 진행 중인 외부 HTTP 요청 정보를 저장 (여러 개 동시 추적)
269
270
  ctx.activeHttpcList = [];
270
271
 
@@ -439,6 +440,12 @@ HttpObserver.prototype.__endTransaction = function (error, ctx, req, res) {
439
440
  Logger.printError('WHATAP-LLM-019', 'flushPendingPacks failed', e, false);
440
441
  }
441
442
 
443
+ // 인바운드 응답 status 반영: ctx.status 초기값(200)이 앱의 4xx/5xx 응답을 가리지 않도록,
444
+ // 실제 res.statusCode 가 에러(>=400)면 반영. (다운스트림 에러로 이미 세팅된 값은 유지)
445
+ if (res && res.statusCode >= 400) {
446
+ ctx.status = res.statusCode;
447
+ }
448
+
442
449
  ctx.start_time = Date.now();
443
450
  // golib UdpTxEndPack Node.js 분기(Ver>=60102) 순서:
444
451
  // [Host, Uri, Mtid, Mdepth, McallerTxid, McallerPcode, McallerSpec, McallerUrl, Status,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "2.0.4",
5
- "releaseDate": "20260706",
4
+ "version": "2.0.5-canary.0",
5
+ "releaseDate": "20260709",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",
8
8
  "scripts": {},