Skip to content
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

Add support for @Startup healthcheck diagnostic #443

Closed
michelcouto opened this issue Apr 15, 2024 · 2 comments · Fixed by #453
Closed

Add support for @Startup healthcheck diagnostic #443

michelcouto opened this issue Apr 15, 2024 · 2 comments · Fixed by #453
Assignees
Labels
Milestone

Comments

@michelcouto
Copy link

When having a class implementing org.eclipse.microprofile.health.HealthCheck and using the @Startup annotation brought since 3.1 API, Eclipse shows the following warning:
The class com.acme.SomeStartupHealthCheck implementing the HealthCheck interface should use the @Liveness or @Readiness annotation.

@Startup should also be supported!

@fbricon
Copy link
Contributor

fbricon commented Apr 15, 2024

Can you provide some pointers to the spec?

@michelcouto
Copy link
Author

michelcouto commented Apr 15, 2024

Sure.
https://download.eclipse.org/microprofile/microprofile-health-3.1/apidocs/

See that, since 3.1, alongside Readiness and Liveness annotations, supported by the MicroProfile Language Server, there is then the Startup one as well.

https://github.com/eclipse/microprofile-health
In here, there are descriptions about the 3 different checks (startup, live and ready).

@angelozerr angelozerr changed the title MicroProfile - HealthCheck warning Add support for @Startup healthcheck diagnostic Jul 11, 2024
angelozerr added a commit to angelozerr/lsp4mp that referenced this issue Jul 11, 2024
angelozerr added a commit to angelozerr/lsp4mp that referenced this issue Jul 11, 2024
angelozerr added a commit that referenced this issue Jul 11, 2024
@angelozerr angelozerr self-assigned this Jul 11, 2024
@angelozerr angelozerr added this to the 0.12.0 milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants