1
0
mirror of https://github.com/rs/zerolog synced 2026-06-08 17:13:30 +00:00

fixed documentation for tracing hook (#621)

This commit is contained in:
Naveen
2023-11-29 08:54:25 +05:30
committed by GitHub
parent 93fb5cb215
commit 7fa45a4dda
+1 -1
View File
@@ -547,7 +547,7 @@ and facilitates the unification of logging and tracing in some systems:
type TracingHook struct{}
func (h TracingHook) Run(e *zerolog.Event, level zerolog.Level, msg string) {
ctx := e.Ctx()
ctx := e.GetCtx()
spanId := getSpanIdFromContext(ctx) // as per your tracing framework
e.Str("span-id", spanId)
}