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
{{ message }}
Repository navigation
Commit 65c96bf
Browse filesBrowse the repository at this point in the historyBrowse files
Record post-chain result failures on the OpenTelemetry span
The context-tier OpenTelemetryMiddleware closes its span when the
middleware chain returns, but result dumping and spec-result
serialization ran after that in _on_request. A handler returning an
unsupported type or a malformed dict for a spec method surfaced as a
JSON-RPC error to the client while the span finished UNSET with no
error attributes, so default error-rate dashboards missed the failure.
Move dumping and serialization into the chain (a new _serialize helper
called from _inner) so the span observes these failures. Serializing
inside the chain also lets a middleware short-circuit own its result
shape directly, replacing the post-chain KeyError catch.
Also point the SEP-414 doc link at its spec-repo PR rather than the
repository root.
0 commit comments