Skip to content

Conversation

@kevpar
Copy link
Member

@kevpar kevpar commented Nov 26, 2024

It turns out for years that the autogenerated TTRPC spans have not been marked correctly if the call failed. This is because defers evaluate their arguments immediately, rather than at the deferred execution time. Fix this by changing err from an argument to the defer, to a variable evaluated inside the defer.

Also adds tests for octtrpc client and server interceptors.

@kevpar kevpar requested a review from a team as a code owner November 26, 2024 02:22
It turns out for years that the autogenerated TTRPC spans have not been
marked correctly if the call failed. This is because defers evaluate
their arguments immediately, rather than at the deferred execution time.
Fix this by changing err from an argument to the defer, to a variable
evaluated inside the defer.

Also adds tests for octtrpc client and server interceptors.

Signed-off-by: Kevin Parsons <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant