Skip to content

Commit

Permalink
Update Trace.java
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithasudhakar authored May 19, 2023
1 parent efb436e commit d4b209b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public Span addTraceInfoToSpan(Span span, CloudEvent cloudEvent) {
}

for (String entry : cloudEvent.getExtensionNames()) {
span.setAttribute(entry, cloudEvent.getExtension(entry) == null ? "" : Objects.requireNonNull(cloudEvent.getExtension(entry)).toString());
span.setAttribute(entry, cloudEvent.getExtension(entry) != null ? cloudEvent.getExtension(entry).toString() : "");
}
return span;
}
Expand Down

0 comments on commit d4b209b

Please sign in to comment.