Repository navigation
fix(opentelemetry_grpc): set error.type to the gRPC status code name - #893
Merged
yordis merged 22 commits intoDec 3, 2026
Merged
Conversation
yordis
marked this pull request as draft
November 17, 2026 06:09
yordis
force-pushed
the
yordis/fix-grpc-error-type-status-code
branch
from
November 23, 2026 11:31
256bdd4 to
fe10809
Compare
yordis
marked this pull request as ready for review
November 25, 2026 00:41
GregMefford
requested changes
Nov 25, 2026
GregMefford
left a comment
Contributor
There was a problem hiding this comment.
It looks like this should be rebased onto main after the previous one got merged. I wasn't clear about the current status based on the description mentioning only the 4 last commits being new and I see a lot of commits here.
…led calls Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ilures group by what the caller saw Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…tion message Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ion message, as the conventions ask Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…e semantic conventions package Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…urns a non-RPCError error Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…non-RPCError error, as the conventions require on failure Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…mantic conventions that define them Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ception without the Elixir prefix Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ay Elixir writes it Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…e grpc has no name for Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…me for instead of detaching the handler Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…o be named by its status code Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ts status code Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ils with throw or exit Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ll fails with throw or exit Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
… fails with throw or exit Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ndler fails with throw or exit Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ion to be named and described by it Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
… an exception by that exception Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
… way as a returned one Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
yordis
force-pushed
the
yordis/fix-grpc-error-type-status-code
branch
from
November 25, 2026 03:35
3dc127d to
f303fc2
Compare
GregMefford
requested changes
Dec 3, 2026
GregMefford
left a comment
Contributor
There was a problem hiding this comment.
Sorry it took so long to get back to this review. Just one more thing that I think we should fix before we ship it!
…ormalize to An error raised with a non-exception reason, like :badarith, fell through to the throw/exit handling and lost its exception event and description. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Member
Author
|
@GregMefford ready again! |
GregMefford
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
error.typeSHOULD be the status code name, such asINTERNAL, when a call ends with an error status, and the exception type or_OTHERonly when it fails before any status comes back. The spans set it to the exception module or a status integer instead, so failures could not be grouped by the code the caller saw, and the same failure grouped differently on the client and the server.GRPC.RPCErroron the client carries a status code, so it should be named by that code like a returned one, not by its module.GRPC.Status.code_name/1inside the handler, which detached it permanently.