Closed wade-liwei closed 5 months ago
Can you explain the error ?
Your message is not very helpful.
I did not find any errors. Could you please help me to find the errors?
If I enable the parameter "WithRequestHeader: true, " with kong proxy, then I will can not get the log.
I guess kong with not standard http headers.
Did you try to bypass kong and reach the HTTP service directly, in order to test the logger?
Yea, If I run the fiber web service with slog-fiver (default param) + kong proxy, it will work ok. If I run the fiber web service with slog-fiver (following param) + kong proxy, it will not work ok.
cfg := slogfiber.Config{ WithUserAgent: true, WithRequestID: true, WithRequestBody: true, WithRequestHeader: true, WithResponseBody: true, WithResponseHeader: true, WithSpanID: true, WithTraceID: true, DefaultLevel: slog.LevelInfo, ClientErrorLevel: slog.LevelWarn, ServerErrorLevel: slog.LevelError, }
If I run the fiber web service with slog-fiver, it will work ok.
You did not reply to my questoin.
Did you try to bypass kong and reach the HTTP service directly, in order to test the logger?
yea, bypass kong and reach the HTTP service directly. no problem.
can you provide a repository to reproduce the error?
I found out the problem is Loki http rate limit, Thank you, good man.
Do you have an example of logging a Kong proxy log?
If I run the fiber web service with slog-fiver (default param) + kong proxy, it will work ok. If I run the fiber web service with slog-fiver (following param) + kong proxy, it will not work ok.