-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ObservationGrpcServerCallListener does not capture an uncontrolled error during the execution of the service logic #4490
Comments
Do you have an example that replicates this problem so that we can look into it? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
No, but you only have to check the behaviour of the method
Thxs for your time. |
@ttddyy so we would have to do this change and it will capture the exception? From public void onHalfClose() {
try (Scope scope = observation.openScope()) {
super.onHalfClose();
}
} To public void onHalfClose() {
observation.scoped( () -> super.onHalfClose() );
} |
Sorry for the late reply. |
@ceremo are you willing to this change? It's pretty straight-forward :) |
Thanks @marcingrzejszczak. I would like your opinion in two improvements about the behaviour of the grpc observation:
Thanks for your time. |
The
We already are doing this. |
Sorry, I don't get it, the |
You said that you want to add extra information to the context. What information exactly? Are you saying that you're missing some objects that the convention could later reuse ? Cause I understood that assuming that all the information got already provided you wanted to add more tags on the context in which case the |
We need to include additional information to the What I'm trying to say it that allowing to customize the supplier context defined in the interceptor will facilitate our case, and could be useful to have it. |
It would be better IMO to prepare the context accordingly. If you think we're missing things in the context please file a PR that adds this data to the existing context. |
The
ObservationGrpcServerCallListener
currently does not inform to theObservation
object when an uncontrolled error occurs during the execution of the gRPC service logic. The current behavior does not allow to determine if an exception ocurred, so the generated metric cannot report accurately if the gRPC service failed.In our gRPC services, errors can be generated as signals (next, completed, error...), but they can also occur as uncontrolled errors during service execution. What are your thoughts about this?
The text was updated successfully, but these errors were encountered: