Description
Our nextjs sdk emits two http.server.middleware spans for a single middleware request:
- Parent (
is_segment: true / is_transaction: true): name middleware GET <route> - the OTel Middleware.execute transaction (correct).
- Child: name
http.server.middleware, description middleware, origin auto.function.nextjs.wrap_middleware- redundant, overlaps the parent, no useful attributes or children.
This affects webpack only as we do not instrument middleware on turbopack.
Description
Our nextjs sdk emits two
http.server.middlewarespans for a single middleware request:is_segment: true / is_transaction: true): namemiddleware GET <route>- the OTelMiddleware.executetransaction (correct).http.server.middleware, descriptionmiddleware, originauto.function.nextjs.wrap_middleware- redundant, overlaps the parent, no useful attributes or children.This affects webpack only as we do not instrument middleware on turbopack.