Skip to content
Discussion options

You must be logged in to vote

I have noticed that one of the code examples uses the @Traced decorator.


import org.eclipse.microprofile.health.HealthCheck;
import org.eclipse.microprofile.health.HealthCheckResponse;
import org.eclipse.microprofile.health.Liveness;
import org.eclipse.microprofile.opentracing.Traced;

import javax.enterprise.context.ApplicationScoped;
import org.jboss.logging.Logger;

@Traced
@Liveness
@ApplicationScoped
public class CustomHealthCheck implements HealthCheck {

    private final Logger log;

    CustomHealthCheck(Logger log) {
        this.log = log;
    }

    @Override
    public HealthCheckResponse call() {
        log.info("Health check");
        return HealthCheckResponse.up("healt…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Ladicek
Comment options

Ladicek May 27, 2022
Collaborator

@filipe-costa
Comment options

Answer selected by filipe-costa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment