All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.kristofa.brave.jaxrs2.JaxRS2ClientResponseAdapter Maven / Gradle / Ivy

Go to download

Jersey 2.x integration that uses the brave api to submit client and server side span information.

There is a newer version: 3.7.0
Show newest version
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