소스 검색

Clarify the depth direction with the parameter

Signed-off-by: Matt Bolt <mbolt35@gmail.com>
Matt Bolt 2 년 전
부모
커밋
5738bdcb71
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/pkg/util/typeutil/typeutil.go

+ 1 - 1
core/pkg/util/typeutil/typeutil.go

@@ -92,6 +92,6 @@ func PackageFromCaller(depth int) string {
 // CurrentPackage returns the package name of the caller. This is especially handy for automatically
 // generating package scoped tracing identifiers.
 func CurrentPackage() string {
-	// Depth is from: (0) Caller -> (1) CurrentPackage -> (2) PackageFromCaller
+	// Depth is from: (2) Caller -> (1) CurrentPackage -> (0) PackageFromCaller
 	return PackageFromCaller(2)
 }