We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to use the official otelfiber and this library to log trace_id and user_id
app.Use(otelfiber.Middleware()) app.Use(slogfiber.NewWithConfig(logger, slogfiber.Config{ WithSpanID: true, WithTraceID: true, }))
I noticed the otelfiber library uses c.UserContext() https://github.com/gofiber/contrib/blob/c62abb213b0a82b35be9ecf39237760e0ee84c84/otelfiber/fiber.go#L119-L120
c.UserContext()
And this library uses c.Context() which trace doesn't exist.
c.Context()
slog-fiber/middleware.go
Lines 181 to 182 in 7bd189e
I'm not sure if i'm implementing this wrong or the library is deliberately using the fasthttp context?
The text was updated successfully, but these errors were encountered:
Side note I think trace id and span id need to be trace_id instead of trace-id https://opentelemetry.io/docs/specs/otel/compatibility/logging_trace_context
trace_id
trace-id
Sorry, something went wrong.
i made a fix, thanks for the feedback
No branches or pull requests
I'm trying to use the official otelfiber and this library to log trace_id and user_id
I noticed the otelfiber library uses
c.UserContext()
https://github.com/gofiber/contrib/blob/c62abb213b0a82b35be9ecf39237760e0ee84c84/otelfiber/fiber.go#L119-L120
And this library uses
c.Context()
which trace doesn't exist.slog-fiber/middleware.go
Lines 181 to 182 in 7bd189e
I'm not sure if i'm implementing this wrong or the library is deliberately using the fasthttp context?
The text was updated successfully, but these errors were encountered: