Skip to content

Commit

Permalink
Correct formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
idelpivnitskiy committed Nov 3, 2023
1 parent a8f13f8 commit c40775c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private PublisherSource.Processor<Span, Span> initReporter(final Builder builder
.map(span -> {
// Always encode spans as list: https://github.com/apple/servicetalk/pull/2092
final byte[] bytes = spanEncoder.encodeList(Collections.singletonList(span));
LOGGER.trace("Encoded received span: {}, result={} bytes", span, bytes.length);
LOGGER.trace("Encoded received span={}, bytes={}", span, bytes.length);
return allocator.wrap(bytes);
});
} else {
Expand All @@ -143,8 +143,8 @@ private PublisherSource.Processor<Span, Span> initReporter(final Builder builder
.filter(accumulate -> !accumulate.isEmpty())
.map(bufferedSpans -> {
final byte[] bytes = spanEncoder.encodeList(bufferedSpans);
LOGGER.trace("Encoded received list of spans (size={}): {}, result={} bytes",
bufferedSpans.size(), bufferedSpans, bytes.length);
LOGGER.trace("Encoded received list of spans (size={}, bytes={}): {}",
bufferedSpans.size(), bytes.length, bufferedSpans);
return allocator.wrap(bytes);
});
}
Expand Down Expand Up @@ -297,7 +297,7 @@ private static final class ListAccumulator implements Accumulator<Span, List<Spa

@Override
public void accumulate(@Nonnull final Span item) {
LOGGER.trace("Accumulating received span: {}", item);
LOGGER.trace("Accumulating received span={}", item);
accumulate.add(requireNonNull(item));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected void initChannel(final Channel ch) {
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) {
if (msg instanceof Span) {
byte[] bytes = codec.spanBytesEncoder().encode((Span) msg);
LOGGER.trace("Encoded received span: {}, result={} bytes", msg, bytes.length);
LOGGER.trace("Encoded received span={}, bytes={}", msg, bytes.length);
ByteBuf buf = ctx.alloc().buffer(bytes.length).writeBytes(bytes);
ctx.write(new DatagramPacket(buf, (InetSocketAddress) collectorAddress), promise);
} else {
Expand Down

0 comments on commit c40775c

Please sign in to comment.