make span names more generic by using OriginalURL instead of Path
This commit is contained in:
@ -48,7 +48,7 @@ func Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption)
|
||||
func FStart(c *fiber.Ctx, opts ...trace.SpanStartOption) (context.Context, trace.Span) {
|
||||
span := trace.SpanFromContext(fiberOpentelemetry.FromCtx(c))
|
||||
c.SetUserContext(trace.ContextWithSpan(c.UserContext(), span))
|
||||
return fiberOpentelemetry.Tracer.Start(c.UserContext(), c.Method()+" "+c.Path(), opts...)
|
||||
return fiberOpentelemetry.Tracer.Start(c.UserContext(), c.Method()+" "+c.OriginalURL(), opts...)
|
||||
}
|
||||
|
||||
// Retrieve span using [fiber.Ctx]
|
||||
|
Reference in New Issue
Block a user