From 7fa45a4dda359d9a657a2960078097415417ec73 Mon Sep 17 00:00:00 2001 From: Naveen Date: Wed, 29 Nov 2023 08:54:25 +0530 Subject: [PATCH] fixed documentation for tracing hook (#621) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 972b729f..afa61569 100644 --- a/README.md +++ b/README.md @@ -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) }