trace: Bootstrap to show the correct source line number (#16989)

This commit is contained in:
Anis Eleuch
2023-04-07 01:51:53 +01:00
committed by GitHub
parent 9803f68522
commit 91b6fe1af3
3 changed files with 5 additions and 5 deletions

View File

@@ -62,8 +62,8 @@ func (bs *bootstrapTracer) Empty() bool {
return empty
}
func (bs *bootstrapTracer) Record(msg string) {
source := getSource(2)
func (bs *bootstrapTracer) Record(msg string, skip int) {
source := getSource(skip + 1)
bs.mu.Lock()
now := time.Now().UTC()
bs.info[bs.idx] = bootstrapInfo{