Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/0.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rdegnan committed Sep 14, 2018
2 parents 0bebe41 + 807eb94 commit d1748aa
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 1,811 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=io.netifi.proteus
version=0.9.1
version=0.9.2
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 0 additions & 2 deletions proteus-tracing-idl/src/main/proto/proteus/tracing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,4 @@ message TracesRequest {
service ProteusTracingService {

rpc StreamSpans (stream zipkin.proto3.Span) returns (Ack) {}

rpc StreamTraces (TracesRequest) returns (stream Trace) {}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,15 @@ public class ProteusZipkinHttpBridge implements ProteusTracingService {
private final int port;
private final String zipkinSpansUrl;
private HttpClient httpClient;
private TracesStreamer tracesStreamer;

public ProteusZipkinHttpBridge(
String host, int port, String zipkinSpansUrl, String zipkinTracesUrl) {
public ProteusZipkinHttpBridge(String host, int port, String zipkinSpansUrl) {
this.host = host;
this.port = port;
this.zipkinSpansUrl = zipkinSpansUrl;
this.tracesStreamer = new TracesStreamer(zipkinTracesUrl, Mono.fromCallable(this::getClient));
}

public ProteusZipkinHttpBridge(String host, int port) {
this(host, port, DEFAULT_ZIPKIN_SPANS_URL, DEFAULT_ZIPKIN_TRACES_URL);
this(host, port, DEFAULT_ZIPKIN_SPANS_URL);
}

public static void main(String... args) {
Expand All @@ -51,8 +48,6 @@ public static void main(String... args) {
int zipkinPort = Integer.getInteger("netifi.proteus.zipkinPort", 9411);
String zipkinSpansUrl =
System.getProperty("netifi.proteus.zipkinSpansUrl", DEFAULT_ZIPKIN_SPANS_URL);
String zipkinTracesUrl =
System.getProperty("netifi.proteus.zipkinTracesUrl", DEFAULT_ZIPKIN_TRACES_URL);
long accessKey = Long.getLong("netifi.proteus.accessKey", 3855261330795754807L);
String accessToken =
System.getProperty("netifi.authentication.accessToken", "kTBDVtfRBO4tHOnZzSyY5ym2kfY");
Expand All @@ -63,7 +58,6 @@ public static void main(String... args) {
logger.info("zipkin host - {}", zipkinHost);
logger.info("zipkin port - {}", zipkinPort);
logger.info("zipkin spans url - {}", zipkinSpansUrl);
logger.info("zipkin traces url - {}", zipkinTracesUrl);
logger.info("access key - {}", accessKey);

Proteus proteus =
Expand All @@ -78,7 +72,7 @@ public static void main(String... args) {

proteus.addService(
new ProteusTracingServiceServer(
new ProteusZipkinHttpBridge(zipkinHost, zipkinPort, zipkinSpansUrl, zipkinTracesUrl),
new ProteusZipkinHttpBridge(zipkinHost, zipkinPort, zipkinSpansUrl),
Optional.empty(),
Optional.empty()));

Expand Down Expand Up @@ -148,9 +142,4 @@ public Mono<Ack> streamSpans(Publisher<Span> messages, ByteBuf metadata) {
"error sending data to tracing data to url " + zipkinSpansUrl, throwable))
.then(Mono.never());
}

@Override
public Flux<Trace> streamTraces(TracesRequest message, ByteBuf metadata) {
return tracesStreamer.streamTraces(message.getLookbackSeconds());
}
}

This file was deleted.

This file was deleted.

7 changes: 1 addition & 6 deletions proteus-vizceral-idl/src/main/proto/proteus/vizceral.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ message Node {
repeated string metadata = 10;
}

message VisualisationRequest {
int32 dataLookbackSeconds = 1;
string rootNode = 2;
}

service VizceralService {

rpc Visualisations (VisualisationRequest) returns (stream Node) {}
rpc Visualisations (google.protobuf.Empty) returns (stream Node) {}
}
Loading

0 comments on commit d1748aa

Please sign in to comment.