From b22cf31eef0d8caddde691c1cc74c4f70cd0030b Mon Sep 17 00:00:00 2001 From: "Vojtech Vitek (golang.cz)" Date: Fri, 15 Nov 2024 16:39:25 +0100 Subject: [PATCH] Update README.md, fix import --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8942cdb..8f3d10a 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,16 @@ There are multiple use-cases where this pattern comes handy such as request logg Set up HTTP client, which sets `User-Agent`, `Authorization` and `TraceID` headers automatically: ```go +import ( + "github.com/go-chi/traceid" +) + authClient := http.Client{ Transport: transport.Chain( http.DefaultTransport, transport.SetHeader("User-Agent", userAgent), transport.SetHeader("Authorization", authHeader), - transport.TraceID, + traceid.Transport, ), Timeout: 15 * time.Second, }