Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaMadhushan committed Jan 18, 2024
1 parent 996b30c commit c5cf01b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ public Object addTag(Environment env, String tagKey, String tagValue, long spanI
if (spanId == -1) {
ObserverContext observer = ObserveUtils.getObserverContextOfCurrentFrame(env);
if (observer == null) {
// This is a case where the user has not started the tracing.
// ObserverContext will be null if function is executed without entry point like main or resource
// function ex. initialising phase.
return null;
}
span = observer.getSpan();
Expand Down

0 comments on commit c5cf01b

Please sign in to comment.