
com.github.kristofa.brave.jaxrs2.JaxRS2ClientResponseAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brave-jaxrs2 Show documentation
Show all versions of brave-jaxrs2 Show documentation
Jersey 2.x integration that uses the brave api to submit client and server side span information.
package com.github.kristofa.brave.jaxrs2;
import com.github.kristofa.brave.client.ClientResponseAdapter;
import javax.ws.rs.client.ClientResponseContext;
public class JaxRS2ClientResponseAdapter implements ClientResponseAdapter {
private final ClientResponseContext response;
public JaxRS2ClientResponseAdapter(final ClientResponseContext response) {
this.response = response;
}
@Override
public int getStatusCode() {
return response.getStatus();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy