feat: add code package field

This commit is contained in:
Kevin Franklin Kim 2022-06-22 12:14:50 +02:00
parent 319d6940ed
commit 6f89b110b1

View File

@ -6,6 +6,7 @@ import (
const (
CodeInstanceKey = "code_instance"
CodePackageKey = "code_package"
CodeMethodKey = "code_method"
CodeLineKey = "code_line"
)
@ -14,6 +15,10 @@ func FCodeInstance(v string) zap.Field {
return zap.String(CodeInstanceKey, v)
}
func FCodePackage(v string) zap.Field {
return zap.String(CodePackageKey, v)
}
func FCodeMethod(v string) zap.Field {
return zap.String(CodeMethodKey, v)
}