Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class.forName("com.mysql.jdbc.Driver");
- HikariConfig config = new HikariConfig();
- config.setJdbcUrl("jdbc:tracing:mysql://my-db:3306/my-db");
- config.setUsername("user");
- config.setPassword("pwd");
- config.setDriverClassName("io.opentracing.contrib.jdbc.TracingDriver");
- HikariDataSource ds = new HikariDataSource(config);
- // some db operation
- compile('io.opentracing.contrib:opentracing-jdbc:0.0.7')
- compile('org.springframework.boot:spring-boot-starter-web')
- compile('org.springframework:spring-jdbc:5.0.8.RELEASE')
- compile group: 'io.opentracing.contrib', name: 'opentracing-jdbc', version: '0.0.7'
- compile('io.jaegertracing:jaeger-client:0.30.4')
- compile group: 'org.springframework.boot', name: 'spring-boot-starter-logging', version: '2.0.4.RELEASE'
- compile('com.zaxxer:HikariCP:3.1.0')
- runtime('mysql:mysql-connector-java')
- providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
- testCompile('org.springframework.boot:spring-boot-starter-test')
Add Comment
Please, Sign In to add comment