Skip to content

Commit

Permalink
Address review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaMadhushan committed Jun 24, 2024
1 parent dee14f7 commit 8d28332
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public boolean finishSpan(Strand strand, long spanId) {
if (!enabled) {
return false;
}
ObserverContext observerContext = observerContextList.getOrDefault(spanId, null);
ObserverContext observerContext = observerContextList.get(spanId);
if (observerContext != null) {
if (observerContext.isSystemSpan()) {
ObserveUtils.setObserverContextToCurrentFrame(strand, observerContext.getParent());
Expand All @@ -153,7 +153,7 @@ public boolean addTag(String tagKey, String tagValue, long spanId, Strand strand
if (!enabled) {
return false;
}
ObserverContext observerContext = observerContextList.getOrDefault(spanId, null);
ObserverContext observerContext = observerContextList.get(spanId);
if (spanId == -1) {
Optional<ObserverContext> observer = ObserveUtils.getObserverContextOfCurrentFrame(strand);
if (observer.isPresent()) {
Expand Down

0 comments on commit 8d28332

Please sign in to comment.