Open heisGarvit opened 3 months ago
The otelfiber
package has been updated to support Fiber v3, requiring changes to function signatures and import paths. Notably, context handling has shifted from pointer receivers to value receivers, affecting middleware implementations. Compatibility with Go has also been updated from version 1.19 to 1.21. Overall, these changes enhance functionality and align with the latest versions of both the Fiber framework and OpenTelemetry conventions.
Files | Change Summary |
---|---|
otelfiber/README.md |
Updated usage and compatibility notes; changed function signatures from pointer to value type. |
otelfiber/config.go |
Modified function signatures to accept fiber.Ctx instead of *fiber.Ctx ; updated options. |
otelfiber/doc.go |
Changed import path to otelfiber/v3 . |
otelfiber/example/server.go |
Updated import paths; changed context parameter types; updated service name for tracing. |
otelfiber/fiber.go |
Revised import paths; adjusted context handling in middleware functions. |
otelfiber/otelfiber_test/fiber_test.go |
Updated import paths; changed context parameter types in tests; increased test timeout. |
otelfiber/semconv.go |
Updated functions to use fiber.Ctx ; modified method calls for HTTP scheme retrieval. |
sequenceDiagram
participant Client
participant Server
participant Middleware
Client->>Server: Request
Server->>Middleware: Pass context
Middleware-->>Server: Process context
Server-->>Client: Response
🐰 In fields of green where changes bloom,
A hop of joy, dispelling gloom.
With Fiber's strength, we leap and play,
New paths to run, a brighter day!
Let's celebrate with hops and cheer,
For updates bring us ever near! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@heisGarvit v3 is still in beta, middlewares will be upgraded once we are closer to release.
@gaby is there any plan for beta release of v3 middleware? So that users of fiber v3 can use opentelemetry to track performance of upcoming release?
PR contains upgrade of otelfiber to v3 for compatibility with fiber v3
Summary by CodeRabbit
New Features
Bug Fixes
fiber.Ctx
.Documentation