Skip to content
Permalink
Browse files
zipkin kind is uppercase
  • Loading branch information
rmannibucau committed May 21, 2018
1 parent 6c5dba5 commit 23647aeacee9e44ab8321bdfa105ee6dc25a62df
Showing 1 changed file with 3 additions and 1 deletion.
@@ -17,6 +17,8 @@
package org.apache.geronimo.microprofile.opentracing.microprofile.zipkin;

import static java.util.Collections.emptyList;
import static java.util.Locale.ROOT;
import static java.util.Optional.ofNullable;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;

@@ -65,7 +67,7 @@ private ZipkinSpan toZipkin(final SpanImpl span) {
zipkin.setTraceId(Long.class.cast(span.getTraceId()));
zipkin.setId(Long.class.cast(span.getId()));
zipkin.setName(span.getName());
zipkin.setKind(span.getKind());
zipkin.setKind(ofNullable(span.getKind()).map(s -> s.toUpperCase(ROOT)).orElse(null));
zipkin.setTimestamp(span.getTimestamp());
zipkin.setDuration(span.getDuration());
zipkin.setTags(span.getTags().entrySet().stream().filter(e -> !Tags.SPAN_KIND.getKey().equalsIgnoreCase(e.getKey()))

0 comments on commit 23647ae

Please sign in to comment.