init struct with files :'(
MODIFY
pom.xml
pom.xml
<artifactId>raclette-java</artifactId>
<version>1.0-SNAPSHOT</version>
+ <dependencies>
+ <dependency>
+ <groupId>io.opentracing</groupId>
+ <artifactId>opentracing-api</artifactId>
+ <version>0.21.0</version>
+ </dependency>
+ </dependencies>
+
</project>
\ No newline at end of file

MODIFY
src/main/java/com/datadoghq/trace/ISampler.java
src/main/java/com/datadoghq/trace/ISampler.java
-package trace;
+package com.datadoghq.trace;
+
+
+import com.datadoghq.trace.impl.Span;
-/**
- * Created by gpolaert on 4/25/17.
- */
public interface ISampler {
+
+ public boolean sample(Span span);
+
}

MODIFY
src/main/java/com/datadoghq/trace/IWriter.java
src/main/java/com/datadoghq/trace/IWriter.java
-package com.datadoghq.trace.impl.com.datadoghq.trace;
+package com.datadoghq.trace;
+
+import com.datadoghq.trace.impl.Span;
-/**
- * Created by gpolaert on 4/25/17.
- */
public interface IWriter {
+
+ public void write(Span span);
+
+ public void close();
}

MODIFY
src/main/java/com/datadoghq/trace/impl/Span.java
src/main/java/com/datadoghq/trace/impl/Span.java
package com.datadoghq.trace.impl;
-/**
- * Created by gpolaert on 4/25/17.
- */
-public class Span {
+import io.opentracing.SpanContext;
+
+import java.util.Map;
+
+public class Span implements io.opentracing.Span {
+ public SpanContext context() {
+ return null;
+ }
+
+ public void finish() {
+
+ }
+
+ public void finish(long l) {
+
+ }
+
+ public void close() {
+
+ }
+
+ public io.opentracing.Span setTag(String s, String s1) {
+ return null;
+ }
+
+ public io.opentracing.Span setTag(String s, boolean b) {
+ return null;
+ }
+
+ public io.opentracing.Span setTag(String s, Number number) {
+ return null;
+ }
+
+ public io.opentracing.Span log(Map<String, ?> map) {
+ return null;
+ }
+
+ public io.opentracing.Span log(long l, Map<String, ?> map) {
+ return null;
+ }
+
+ public io.opentracing.Span log(String s) {
+ return null;
+ }
+
+ public io.opentracing.Span log(long l, String s) {
+ return null;
+ }
+
+ public io.opentracing.Span setBaggageItem(String s, String s1) {
+ return null;
+ }
+
+ public String getBaggageItem(String s) {
+ return null;
+ }
+
+ public io.opentracing.Span setOperationName(String s) {
+ return null;
+ }
+
+ public io.opentracing.Span log(String s, Object o) {
+ return null;
+ }
+
+ public io.opentracing.Span log(long l, String s, Object o) {
+ return null;
+ }
}

MODIFY
src/main/java/com/datadoghq/trace/impl/SpanContext.java
src/main/java/com/datadoghq/trace/impl/SpanContext.java
package com.datadoghq.trace.impl;
-/**
- * Created by gpolaert on 4/25/17.
- */
-public class SpanContext {
+
+import java.util.Map;
+
+public class SpanContext implements io.opentracing.SpanContext {
+ public Iterable<Map.Entry<String, String>> baggageItems() {
+ return null;
+ }
}

MODIFY
src/main/java/com/datadoghq/trace/impl/Tracer.java
src/main/java/com/datadoghq/trace/impl/Tracer.java
package com.datadoghq.trace.impl;
-/**
- * Created by gpolaert on 4/25/17.
- */
-public class Tracer {
+import io.opentracing.Span;
+import io.opentracing.SpanContext;
+import io.opentracing.propagation.Format;
+
+import java.util.Map;
+
+
+public class Tracer implements io.opentracing.Tracer {
+ public SpanBuilder buildSpan(String s) {
+ return null;
+ }
+
+ public <C> void inject(SpanContext spanContext, Format<C> format, C c) {
+
+ }
+
+ public <C> SpanContext extract(Format<C> format, C c) {
+ return null;
+ }
+
+ class SpanBuilder implements io.opentracing.Tracer.SpanBuilder{
+
+ public io.opentracing.Tracer.SpanBuilder asChildOf(SpanContext spanContext) {
+ return null;
+ }
+
+ public io.opentracing.Tracer.SpanBuilder asChildOf(Span span) {
+ return null;
+ }
+
+ public io.opentracing.Tracer.SpanBuilder addReference(String s, SpanContext spanContext) {
+ return null;
+ }
+
+ public io.opentracing.Tracer.SpanBuilder withTag(String s, String s1) {
+ return null;
+ }
+
+ public io.opentracing.Tracer.SpanBuilder withTag(String s, boolean b) {
+ return null;
+ }
+
+ public io.opentracing.Tracer.SpanBuilder withTag(String s, Number number) {
+ return null;
+ }
+
+ public io.opentracing.Tracer.SpanBuilder withStartTimestamp(long l) {
+ return null;
+ }
+
+ public Span start() {
+ return null;
+ }
+
+ public Iterable<Map.Entry<String, String>> baggageItems() {
+ return null;
+ }
+ }
}

init struct with files :'(