go back to using OriginalURL to better support salego which uses Groups on fiber.Router
This commit is contained in:
parent
d7b45a1439
commit
d708f9ae04
@ -46,7 +46,7 @@ func Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption)
|
||||
// NOTE: You can use [trace.WithAttributes] as a parameter to opts argument
|
||||
// Returns [c.UserContext] as [context.Context]
|
||||
func FStart(c *fiber.Ctx, opts ...trace.SpanStartOption) (context.Context, trace.Span) {
|
||||
return Tracer.Start(c.UserContext(), c.Method()+" "+c.Route().Path, opts...)
|
||||
return Tracer.Start(c.UserContext(), c.Method()+" "+c.OriginalURL(), opts...)
|
||||
}
|
||||
|
||||
// Just like [FStart] but makes it possible to assign custom span name.
|
||||
|
@ -71,7 +71,7 @@ func new(config ...middlewareConfig) fiber.Handler {
|
||||
|
||||
otelCtx, span := Tracer.Start(
|
||||
c.UserContext(),
|
||||
c.Method()+" "+c.Route().Path,
|
||||
c.Method()+" "+c.OriginalURL(),
|
||||
opts...,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user