Merge pull request #81 from tyler/misc

Various cleanup items
This commit is contained in:
Emanuele Palazzetti 2017-08-02 10:50:57 +02:00 committed by GitHub
commit b3c21aa124
10 changed files with 11 additions and 9 deletions

View File

@ -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

2
.gitignore vendored
View File

@ -7,7 +7,7 @@ target
# Gradle # # Gradle #
######### #########
!/gradle/wrapper/* !**/gradle/wrapper/*
/.gradle /.gradle
**/build/ **/build/
dd-trace-examples/**/build/ dd-trace-examples/**/build/

View File

@ -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.

View File

@ -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

View File

@ -80,7 +80,6 @@ artifactoryPublish { task ->
} }
defaults { defaults {
publishConfigs('archives') publishConfigs('archives')
publishIvy = false
} }
} }
} }

Binary file not shown.