Skip to content

Commit 7fa45a4

Browse files
authored
fixed documentation for tracing hook (#621)
1 parent 93fb5cb commit 7fa45a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ and facilitates the unification of logging and tracing in some systems:
547547
type TracingHook struct{}
548548

549549
func (h TracingHook) Run(e *zerolog.Event, level zerolog.Level, msg string) {
550-
ctx := e.Ctx()
550+
ctx := e.GetCtx()
551551
spanId := getSpanIdFromContext(ctx) // as per your tracing framework
552552
e.Str("span-id", spanId)
553553
}

0 commit comments

Comments
 (0)