Java Code Examples for zipkin2.codec.SpanBytesEncoder#PROTO3
The following examples show how to use
zipkin2.codec.SpanBytesEncoder#PROTO3 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: URLConnectionSenderTest.java From zipkin-reporter-java with Apache License 2.0 | 6 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder; switch (sender.encoding()) { case JSON: bytesEncoder = SpanBytesEncoder.JSON_V2; break; case THRIFT: bytesEncoder = SpanBytesEncoder.THRIFT; break; case PROTO3: bytesEncoder = SpanBytesEncoder.PROTO3; break; default: throw new UnsupportedOperationException("encoding: " + sender.encoding()); } return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 2
Source File: ITKafkaSender.java From zipkin-reporter-java with Apache License 2.0 | 6 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder; switch (sender.encoding()) { case JSON: bytesEncoder = SpanBytesEncoder.JSON_V2; break; case THRIFT: bytesEncoder = SpanBytesEncoder.THRIFT; break; case PROTO3: bytesEncoder = SpanBytesEncoder.PROTO3; break; default: throw new UnsupportedOperationException("encoding: " + sender.encoding()); } return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 3
Source File: OkHttpSenderTest.java From zipkin-reporter-java with Apache License 2.0 | 6 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder; switch (sender.encoding()) { case JSON: bytesEncoder = SpanBytesEncoder.JSON_V2; break; case THRIFT: bytesEncoder = SpanBytesEncoder.THRIFT; break; case PROTO3: bytesEncoder = SpanBytesEncoder.PROTO3; break; default: throw new UnsupportedOperationException("encoding: " + sender.encoding()); } return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 4
Source File: ITActiveMQSender.java From zipkin-reporter-java with Apache License 2.0 | 6 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder; switch (sender.encoding()) { case JSON: bytesEncoder = SpanBytesEncoder.JSON_V2; break; case THRIFT: bytesEncoder = SpanBytesEncoder.THRIFT; break; case PROTO3: bytesEncoder = SpanBytesEncoder.PROTO3; break; default: throw new UnsupportedOperationException("encoding: " + sender.encoding()); } return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 5
Source File: ITKafkaSender.java From zipkin-reporter-java with Apache License 2.0 | 6 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder; switch (sender.encoding()) { case JSON: bytesEncoder = SpanBytesEncoder.JSON_V2; break; case THRIFT: bytesEncoder = SpanBytesEncoder.THRIFT; break; case PROTO3: bytesEncoder = SpanBytesEncoder.PROTO3; break; default: throw new UnsupportedOperationException("encoding: " + sender.encoding()); } return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 6
Source File: KinesisSenderTest.java From zipkin-aws with Apache License 2.0 | 4 votes |
Call<Void> send(zipkin2.Span... spans) { SpanBytesEncoder bytesEncoder = sender.encoding() == Encoding.JSON ? SpanBytesEncoder.JSON_V2 : SpanBytesEncoder.PROTO3; return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 7
Source File: SQSAsyncSenderTest.java From zipkin-aws with Apache License 2.0 | 4 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder = sender.encoding() == Encoding.JSON ? SpanBytesEncoder.JSON_V2 : SpanBytesEncoder.PROTO3; return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 8
Source File: SQSSenderTest.java From zipkin-aws with Apache License 2.0 | 4 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder = sender.encoding() == Encoding.JSON ? SpanBytesEncoder.JSON_V2 : SpanBytesEncoder.PROTO3; return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 9
Source File: SQSSenderTest.java From zipkin-aws with Apache License 2.0 | 4 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder = sender.encoding() == Encoding.JSON ? SpanBytesEncoder.JSON_V2 : SpanBytesEncoder.PROTO3; return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 10
Source File: ITRabbitMQSender.java From zipkin-reporter-java with Apache License 2.0 | 4 votes |
/** Blocks until the callback completes to allow read-your-writes consistency during tests. */ static Call<Void> send(Sender sender, Span... spans) { SpanBytesEncoder bytesEncoder = sender.encoding() == Encoding.JSON ? SpanBytesEncoder.JSON_V2 : SpanBytesEncoder.PROTO3; return sender.sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }
Example 11
Source File: RestTemplateSenderTest.java From spring-cloud-sleuth with Apache License 2.0 | 4 votes |
Call<Void> send(Span... spans) { SpanBytesEncoder bytesEncoder = this.sender.encoding() == Encoding.JSON ? SpanBytesEncoder.JSON_V2 : SpanBytesEncoder.PROTO3; return this.sender .sendSpans(Stream.of(spans).map(bytesEncoder::encode).collect(toList())); }