-
Notifications
You must be signed in to change notification settings - Fork 124
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
Rich error model client api #1665
Conversation
a1b40ff
to
34b20fd
Compare
Hi @raboof, Thank you for your contribution! We really value the time you've taken to put this together. We see that you have signed the Lightbend Contributors License Agreement before, however, the CLA has changed since you last signed it. |
|
Hi @raboof, Thank you for your contribution! We really value the time you've taken to put this together. We see that you have signed the Lightbend Contributors License Agreement before, however, the CLA has changed since you last signed it. |
1 similar comment
Hi @raboof, Thank you for your contribution! We really value the time you've taken to put this together. We see that you have signed the Lightbend Contributors License Agreement before, however, the CLA has changed since you last signed it. |
Based on #1540
9a4175f
to
fca491f
Compare
@ennru this is now passing all but link and cla validator (who is drunk) |
|
||
import akka.NotUsed | ||
import akka.actor.ActorSystem | ||
import akka.grpc.internal.RichGrpcMetadataImpl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the user will need to directly access an Akka gRPC internal class match against?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. If this is the way to go, we should probably make this class non-internal to avoid confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, that's not nice, we should make it public API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in d052ee7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An API suggestion, LGTM for the rest of it.
*/ | ||
@ApiMayChange | ||
@DoNotInherit | ||
trait RichMetadata extends Metadata { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to use a postfix instead for easier discoverability with code completion?
MetadataExtended
, MetadataEnriched
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea
Would be good with less low level access to parsed values the predefined details types (like |
Meh, I merged before pushed the rename. 🤦 Follow up PR coming. |
Based on #1540 - see discussion there