Open bbzg opened 5 years ago
@bbzg Are you using our Trace starter? Which version of spring-cloud-gcp
are you using?
The log statement seems to be coming from zipkin-reporter-java. I don't believe Spring Cloud GCP even has a dependency on this module.
This is what I am using:
The library that configures the tracing:
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
implementation 'org.springframework.cloud:spring-cloud-gcp-starter-trace'
implementation 'io.zipkin.brave:brave-instrumentation-okhttp3'
And then these boms
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.1.5.RELEASE'
mavenBom 'com.google.cloud:google-cloud-bom:0.94.0-alpha'
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Greenwich.RELEASE'
}
dependencies {
dependency 'io.zipkin.brave:brave-instrumentation-okhttp3:5.6.1'
dependency 'io.zipkin.brave:brave-instrumentation-mysql:5.6.1'
}
Why okhttp/mysql aren't included is a story of its own, but ignore that for now I guess.
I know that there are newer versions of the dependencies, but would that really have helped?
Looks like it's coming from zipkin-gcp
. In any case, the code is not in this repo. So, we can't really fix it here. Can you file the bug in the zipkin-gcp
repository?
Thanks!
@bbzg - Hey, I filed a bug for you with Zipkin here: https://github.com/openzipkin/zipkin-gcp/issues/129
We will wait to see the Zipkin team's response and if there might be a fix for this issue.
Thank you @meltsufin and @dzou, I appreciate your hard work!
a better way to solve this problem is to not wait until runtime to find it. I opened this in sleuth about that https://github.com/spring-cloud/spring-cloud-sleuth/issues/1411
if there is a flaw in the health check of the stackdriver sender, better to focus energy there in making it more robust
FWIW I think probably 1/100 people even know there's a health check function on all senders :P
Here's the implementation of the health check function in StackdriverSender
:
public CheckResult check() {
return CheckResult.OK;
}
Not particularly useful. :smile:
@meltsufin maybe raise a pull request? not all senders have great ones but most have something better than this. As this code is literally for a commercial product it could help that one of the vendors helps fix that vs expecting labor from volunteers for everything
@adriancole Sure, we can look into it.
zipkin-gcp
is now fully set up to report errors. spring-cloud-gcp
can take advantage of the enhancements once we upgrade (tracked in #1862 and #1786).
Today I wasted an inordinate amount of time to figure out why a new project was not reporting spans to Stackdriver Trace.
The error message, which was clear as day, was logged as
DEBUG
byzipkin2.reporter.AsyncReporter$BoundedAsyncReporter
The error that was logged was (formatted for readability):
Which tells me exactly what I need to do, but who in their right mind sets their tracing library to
DEBUG
level (except when you have tried everything).This is surely an error and should be logged with an
ERROR
level?Thank you for an otherwise excellent product! =)