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

com.github.kristofa.brave.mysql.MySQLStatementInterceptorManagementBean Maven / Gradle / Ivy

Go to download

MySQL integration that uses the brave api to submit client span information.

The newest version!
package com.github.kristofa.brave.mysql;

import com.github.kristofa.brave.ClientTracer;

import java.io.Closeable;
import java.io.IOException;

/**
 * A simple bean whose only purpose in life is to manage the lifecycle of the {@linkplain ClientTracer} in the {@linkplain MySQLStatementInterceptor}.
 */
public class MySQLStatementInterceptorManagementBean implements Closeable {

    public MySQLStatementInterceptorManagementBean(final ClientTracer tracer) {
        MySQLStatementInterceptor.setClientTracer(tracer);
    }

    @Override
    public void close() throws IOException {
        MySQLStatementInterceptor.setClientTracer(null);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy