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
Make interface type available to providers #121
Comments
Where would such information be made available? Not sure I'm understanding what's required and how. |
Let's say I have this client: @Traced
@TracedTags({"foo": "bar"})
@Path("/")
interface Service {
@GET
@Path("/get")
get();
} It would mean that the client is traced and the tracing integration would add The |
Talking with @pavolloffay - it sounds like the ideal solution would be to have a The |
@andymc12 I have more thoughts on the issue. It would be great if a provider(e.g. filter) would have access to the method of the interface(which means it has an access to the interface itself). Then an annotation can be used to change a behavior of the method e.g. |
@pavolloffay @kenfinnigan I think this request makes sense. What do you guys think of something like:
|
If I get it correctly then users can use From these two putting the method into attributes seems easier to implement. |
Sure, we could put the Method object in the properties obtainable by |
It sounds good, Will it be done in 1.2? |
@pavolloffay - yes, that's the plan. Thanks! |
This partially resolves issue [121](eclipse/microprofile-rest-client#121) for MicroProfile Rest Client 1.2 - enabling `ClientRequestFilter`s to access the Rest Client interface method being invoked.
This partially resolves issue [121](eclipse/microprofile-rest-client#121) for MicroProfile Rest Client 1.2 - enabling `ClientRequestFilter`s to access the Rest Client interface method being invoked.
@pavolloffay - are you ok with me closing this issue? There are effectively two changes here:
|
Thanks, @andymc12. It looks fine to me. I will just add pointers here:
When do you plan to cut a release with this changes? I would like to start building OT integration with this. |
@pavolloffay Our tentative plan is to release MP Rest Client 1.2 in 4Q2018. I say tentative, because the last I heard, the next release of the overall MicroProfile spec is scheduled for 1Q2019 - so it's possible that MP Rest Client 1.2 will not be released until then. In the mean time... I don't know what the policy for "early-access" releases are. At this point, we are not in good shape to cut a release candidate, but maybe we could cut some sort of alpha or beta release? @kenfinnigan what do you think? |
I would like to use this feature in the next OT version, which should be also included in the overall spec. If you can cut a release earlier it would give us more time to develop and test. If you cut it just before the overall release there will be a short time for us to integrate. |
@andymc12 @kenfinnigan any news on the release schedule? |
@pavolloffay sorry for the slow reply - yes, we just published a milestone release with these changes included. You can see more info at the MP Google Group post: |
This is great thank you! This ticket can be closed. |
This partially resolves issue [121](eclipse/microprofile-rest-client#121) for MicroProfile Rest Client 1.2 - enabling `ClientRequestFilter`s to access the Rest Client interface method being invoked.
Use case:
Provider could use annotations on the interface to configure its behavior. For example tracing integration could be disabled if
@Traced(false)
is added on the interface. Or it could add custom meta-data - tags specified in that annotation to the span created in the client.This is blocking eclipse/microprofile-opentracing#102
The text was updated successfully, but these errors were encountered: