org.wildfly.swarm.jaxrs.btm.BraveLookup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zipkin-jaxrs Show documentation
Show all versions of zipkin-jaxrs Show documentation
Enables the zipkin instrumentation for JAX-RS resources
package org.wildfly.swarm.jaxrs.btm;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import com.github.kristofa.brave.Brave;
/**
* @author Heiko Braun
* @since 17/10/16
*/
public interface BraveLookup {
String JNDI_NAME = "swarm/zipkin/brave";
static BraveLookup lookup() throws NamingException {
InitialContext context = new InitialContext();
return (BraveLookup) context.lookup("jboss/" + BraveLookup.JNDI_NAME);
}
Brave get();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy