Updates to zipkin 0.11

The only notable change for Sleuth is an artifact id change from
spanstore to storage.
This commit is contained in:
Adrian Cole
2016-04-03 21:04:55 +08:00
parent b3c78c139d
commit eaa008f933
8 changed files with 53 additions and 42 deletions

View File

@@ -1,15 +1,22 @@
mysql:
image: openzipkin/zipkin-mysql:1.38.1
ports:
- 3306:3306
query:
image: openzipkin/zipkin-java:0.9.3
environment:
- STORAGE_TYPE=mysql
ports:
# Historical port used for the Zipkin HTTP Api
- 9411:9411
# Zipkin UI used to be on a separate process listening on port 8080
- 8080:9411
links:
- mysql:storage
version: '2'
services:
storage:
image: openzipkin/zipkin-mysql:1.39.3
container_name: mysql
ports:
- 3306:3306
query:
image: openzipkin/zipkin-java:0.11.0
environment:
- STORAGE_TYPE=mysql
- MYSQL_HOST=mysql
ports:
# Listen port for the Scribe transport
- 9410:9410
# Historical port used for the Zipkin HTTP Api
- 9411:9411
# Zipkin UI used to be on a separate process listening on port 8080
- 8080:9411
depends_on:
- storage

View File

@@ -121,7 +121,7 @@ public class ZipkinSpanListener implements SpanReporter {
String serviceName = span.tags().containsKey(Span.SPAN_PEER_SERVICE_TAG_NAME) ?
span.tags().get(Span.SPAN_PEER_SERVICE_TAG_NAME) : this.endpointLocator.local().serviceName;
zipkinSpan.addBinaryAnnotation(BinaryAnnotation.address(Constants.SERVER_ADDR,
Endpoint.create(serviceName, this.endpointLocator.local().ipv4, this.endpointLocator.local().port)));
new Endpoint.Builder(this.endpointLocator.local()).serviceName(serviceName).build()));
}
private boolean notClientOrServer(Span span) {