Skip to content

Commit

Permalink
fixed documentation for tracing hook (rs#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyme authored and mAdkins committed Mar 2, 2024
1 parent bd1b762 commit 8527be3
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 8527be3

Please sign in to comment.