com.github.kristofa.brave.mysql.MySQLStatementInterceptorManagementBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brave-mysql Show documentation
Show all versions of brave-mysql Show documentation
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