From c7ac4d5820d9461e212216a139582507ff8a9f0a Mon Sep 17 00:00:00 2001 From: naveen Date: Tue, 28 Nov 2023 21:26:47 +0530 Subject: [PATCH 1/2] fixed documentation for tracing hook --- 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) } From 346f7aee3a1a51cada80ed1d29a36b4508951560 Mon Sep 17 00:00:00 2001 From: naveen Date: Wed, 13 Dec 2023 22:49:32 +0530 Subject: [PATCH 2/2] fix failing tests --- diode/diode_test.go | 1 + hlog/hlog_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/diode/diode_test.go b/diode/diode_test.go index 87f62bcd..29b3f867 100644 --- a/diode/diode_test.go +++ b/diode/diode_test.go @@ -3,6 +3,7 @@ package diode_test import ( "bytes" "fmt" + "io" "log" "os" "testing" diff --git a/hlog/hlog_test.go b/hlog/hlog_test.go index 0d6b31ea..445d6b6f 100644 --- a/hlog/hlog_test.go +++ b/hlog/hlog_test.go @@ -7,6 +7,7 @@ import ( "bytes" "context" "fmt" + "io" "net/http" "net/http/httptest" "net/url"