Guest User

Untitled

a guest
Aug 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Class.forName("com.mysql.jdbc.Driver");
  2. HikariConfig config = new HikariConfig();
  3. config.setJdbcUrl("jdbc:tracing:mysql://my-db:3306/my-db");
  4. config.setUsername("user");
  5. config.setPassword("pwd");
  6. config.setDriverClassName("io.opentracing.contrib.jdbc.TracingDriver");
  7. HikariDataSource ds = new HikariDataSource(config);
  8.  
  9. // some db operation
  10.  
  11. compile('io.opentracing.contrib:opentracing-jdbc:0.0.7')
  12. compile('org.springframework.boot:spring-boot-starter-web')
  13. compile('org.springframework:spring-jdbc:5.0.8.RELEASE')
  14. compile group: 'io.opentracing.contrib', name: 'opentracing-jdbc', version: '0.0.7'
  15. compile('io.jaegertracing:jaeger-client:0.30.4')
  16. compile group: 'org.springframework.boot', name: 'spring-boot-starter-logging', version: '2.0.4.RELEASE'
  17. compile('com.zaxxer:HikariCP:3.1.0')
  18. runtime('mysql:mysql-connector-java')
  19. providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
  20. testCompile('org.springframework.boot:spring-boot-starter-test')
Add Comment
Please, Sign In to add comment