commit
b3c21aa124
|
@ -53,5 +53,6 @@ jobs:
|
||||||
-Psigning.secretKeyRingFile=/home/circleci/dd-trace-java/.circleci/secring.gpg \
|
-Psigning.secretKeyRingFile=/home/circleci/dd-trace-java/.circleci/secring.gpg \
|
||||||
-PbintrayUser=${BINTRAY_USER} \
|
-PbintrayUser=${BINTRAY_USER} \
|
||||||
-PbintrayApiKey=${BINTRAY_API_KEY} \
|
-PbintrayApiKey=${BINTRAY_API_KEY} \
|
||||||
|
-PbuildInfo.build.number=${CIRCLE_BUILD_NUM} \
|
||||||
artifactoryPublish
|
artifactoryPublish
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -7,7 +7,7 @@ target
|
||||||
|
|
||||||
# Gradle #
|
# Gradle #
|
||||||
#########
|
#########
|
||||||
!/gradle/wrapper/*
|
!**/gradle/wrapper/*
|
||||||
/.gradle
|
/.gradle
|
||||||
**/build/
|
**/build/
|
||||||
dd-trace-examples/**/build/
|
dd-trace-examples/**/build/
|
||||||
|
|
|
@ -2,6 +2,10 @@ package io.opentracing.contrib.mongo;
|
||||||
|
|
||||||
import io.opentracing.Tracer;
|
import io.opentracing.Tracer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class exists purely to bypass the reduction in constructor visibility of
|
||||||
|
* TracingCommandListener.
|
||||||
|
*/
|
||||||
public class TracingCommandListenerFactory {
|
public class TracingCommandListenerFactory {
|
||||||
|
|
||||||
public static TracingCommandListener create(final Tracer tracer) {
|
public static TracingCommandListener create(final Tracer tracer) {
|
||||||
|
|
Binary file not shown.
BIN
dd-trace-examples/dropwizard-mongo-client/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
dd-trace-examples/dropwizard-mongo-client/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,8 +1,8 @@
|
||||||
## Spring-boot + JDBC (MySQL) example
|
## Spring-boot + JDBC example
|
||||||
### Purpose
|
### Purpose
|
||||||
|
|
||||||
This project aims at demonstrating how to instrument legacy code based on the SpringBoot framework
|
This project aims at demonstrating how to instrument legacy code based on the SpringBoot framework
|
||||||
and a MySQL JDBC connection.
|
and a JDBC connection.
|
||||||
|
|
||||||
We are using the [opentracing contributions](https://github.com/opentracing-contrib) in order to trace:
|
We are using the [opentracing contributions](https://github.com/opentracing-contrib) in order to trace:
|
||||||
* All the JDBC queries and calls to the DB
|
* All the JDBC queries and calls to the DB
|
||||||
|
@ -15,7 +15,7 @@ at this time.
|
||||||
|
|
||||||
### Run the demo
|
### Run the demo
|
||||||
|
|
||||||
The demo consistes into a very simple backend backed by a MySQL db. The Spring Boot application exposes
|
The demo consistes into a very simple backend backed by an in-memory db. The Spring Boot application exposes
|
||||||
2 endpoints that can be reached via an HTTP request.
|
2 endpoints that can be reached via an HTTP request.
|
||||||
|
|
||||||
#### Prerequisites
|
#### Prerequisites
|
||||||
|
@ -30,10 +30,8 @@ connection properties are okay.
|
||||||
```properties
|
```properties
|
||||||
# file: src/resources/application.properties
|
# file: src/resources/application.properties
|
||||||
|
|
||||||
spring.datasource.driver-class-name= io.opentracing.contrib.jdbc.TracingDriver
|
spring.datasource.driver-class-name=io.opentracing.contrib.jdbc.TracingDriver
|
||||||
spring.datasource.url= jdbc:tracing:mysql://localhost:3306/springdb
|
spring.datasource.url=jdbc:tracing:h2:mem:spring-test
|
||||||
spring.datasource.username=root
|
|
||||||
spring.datasource.password=root
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
Binary file not shown.
|
@ -80,7 +80,6 @@ artifactoryPublish { task ->
|
||||||
}
|
}
|
||||||
defaults {
|
defaults {
|
||||||
publishConfigs('archives')
|
publishConfigs('archives')
|
||||||
publishIvy = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue