You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(hono): Use arity heuristic to distinguish .use() middleware from .all() handlers
Hono registers both .use() middleware and .all() route handlers with
method:'ALL' internally. Previously patchRoute wrapped all method:'ALL'
handlers as middleware spans, incorrectly tracing .all() final handlers.
Use handler.length >= 2 (accepts context + next) to identify middleware
vs handler.length < 2 (accepts only context) for route handlers.
Also guard responseHandler against re-capturing errors already captured
by wrapMiddlewareWithSpan via isAlreadyCaptured check.
Made-with: Cursor
0 commit comments