Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
getsentry-bot committed Feb 4, 2025
1 parent ea206a7 commit 0c5d7ff
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void removeExtra(final @NotNull String key) {
public void setTrace(@Nullable SpanContext spanContext, @NotNull IScope scope) {
options.getLogger().log(SentryLevel.INFO, "Attempting to set the trace ID");

if(spanContext == null) {
if (spanContext == null) {
return;
}

Expand All @@ -145,7 +145,9 @@ public void setTrace(@Nullable SpanContext spanContext, @NotNull IScope scope) {
try {
options.getExecutorService().submit(() -> nativeScope.setTraceId(traceIdString));
} catch (Throwable e) {
options.getLogger().log(SentryLevel.ERROR, e, "Scope sync setTraceId(%s) has an error.", traceIdString);
options
.getLogger()
.log(SentryLevel.ERROR, e, "Scope sync setTraceId(%s) has an error.", traceIdString);
}
}
}

0 comments on commit 0c5d7ff

Please sign in to comment.