Fix codenarc errors
This commit is contained in:
parent
2d89ee0d54
commit
71ab8b2be1
|
@ -1,7 +1,7 @@
|
||||||
package com.datadoghq.trace
|
package com.datadoghq.trace
|
||||||
|
|
||||||
class SpanFactory {
|
class SpanFactory {
|
||||||
static def newSpanOf(long timestampMicro) {
|
static newSpanOf(long timestampMicro) {
|
||||||
def context = new DDSpanContext(
|
def context = new DDSpanContext(
|
||||||
1L,
|
1L,
|
||||||
1L,
|
1L,
|
||||||
|
@ -14,7 +14,7 @@ class SpanFactory {
|
||||||
"fakeType",
|
"fakeType",
|
||||||
Collections.emptyMap(),
|
Collections.emptyMap(),
|
||||||
null,
|
null,
|
||||||
null);
|
null)
|
||||||
return new DDSpan(timestampMicro, context)
|
return new DDSpan(timestampMicro, context)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ import static ratpack.groovy.test.embed.GroovyEmbeddedApp.ratpack
|
||||||
import static ratpack.http.MediaType.APPLICATION_JSON
|
import static ratpack.http.MediaType.APPLICATION_JSON
|
||||||
|
|
||||||
class DDApiTest extends Specification {
|
class DDApiTest extends Specification {
|
||||||
static def mapper = new ObjectMapper()
|
static mapper = new ObjectMapper()
|
||||||
|
|
||||||
def "sending an empty list of traces returns no errors"() {
|
def "sending an empty list of traces returns no errors"() {
|
||||||
setup:
|
setup:
|
||||||
|
@ -74,7 +74,7 @@ class DDApiTest extends Specification {
|
||||||
client.sendTraces(traces)
|
client.sendTraces(traces)
|
||||||
requestContentType.get().type == APPLICATION_JSON
|
requestContentType.get().type == APPLICATION_JSON
|
||||||
requestHeaders.get().get("Datadog-Meta-Lang") == "java"
|
requestHeaders.get().get("Datadog-Meta-Lang") == "java"
|
||||||
requestHeaders.get().get("Datadog-Meta-Lang-Version") == System.getProperty("java.version", "unknown");
|
requestHeaders.get().get("Datadog-Meta-Lang-Version") == System.getProperty("java.version", "unknown")
|
||||||
requestHeaders.get().get("Datadog-Meta-Tracer-Version") == "unknown"
|
requestHeaders.get().get("Datadog-Meta-Tracer-Version") == "unknown"
|
||||||
convert(requestBody.get()) == expectedRequestBody
|
convert(requestBody.get()) == expectedRequestBody
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue