Skip to content

Commit

Permalink
fixed documentation for tracing hook (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyme committed Nov 29, 2023
1 parent 93fb5cb commit 7fa45a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7fa45a4

Please sign in to comment.