Skip to content

Commit

Permalink
Add support for the custom SmallRye fault tolerance annotations (like…
Browse files Browse the repository at this point in the history
… rate limiting)
  • Loading branch information
cescoffier committed Jan 10, 2024
1 parent 229ad86 commit 0bb563c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,9 @@ public void handleAiServices(AiServicesRecorder recorder,
for (AnnotationInstance annotationInstance : methodInfo.declaredAnnotations()) {
// TODO: we need to review this
if (annotationInstance.name().toString()
.startsWith("org.eclipse.microprofile.faulttolerance")) {
.startsWith("org.eclipse.microprofile.faulttolerance")
|| annotationInstance.name().toString()
.startsWith("io.smallrye.faulttolerance.api")) {
mc.addAnnotation(annotationInstance);
}
}
Expand Down

0 comments on commit 0bb563c

Please sign in to comment.