We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 851ec71 + 3bffd16 commit b768373Copy full SHA for b768373
1 file changed
lmw.go
@@ -16,6 +16,11 @@ func RequestIDMiddleware(next http.Handler) http.Handler {
16
return middleware.RequestID(next)
17
}
18
19
+// Re-export GetReqID for use outside the internal package
20
+func GetReqID(ctx context.Context) string {
21
+ return middleware.GetReqID(ctx)
22
+}
23
+
24
// Glue between chi RequestID and Zerolog
25
func RequestIDLoggingMiddleware(next http.Handler) http.Handler {
26
fn := func(w http.ResponseWriter, r *http.Request) {
0 commit comments