Skip to content

Commit 3d99e63

Browse files
committed
.
1 parent d7316ea commit 3d99e63

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

sentry/src/main/java/io/sentry/Scopes.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -950,16 +950,23 @@ public void setActiveSpan(final @Nullable ISpan span) {
950950
getOptions().getCacheDirPath(), !getOptions().isEnableAutoSessionTracking());
951951
}
952952

953+
@Override
954+
public void reportFullyDisplayed() {
955+
if (getOptions().isEnableTimeToFullDisplayTracing()) {
956+
getOptions().getFullyDisplayedReporter().reportFullyDrawn();
957+
}
958+
}
959+
953960
@Override
954961
public @Nullable TransactionContext continueTrace(
955-
final @Nullable String sentryTrace, final @Nullable List<String> baggageHeaders) {
962+
final @Nullable String sentryTrace, final @Nullable List<String> baggageHeaders) {
956963
@NotNull
957964
PropagationContext propagationContext =
958-
PropagationContext.fromHeaders(getOptions().getLogger(), sentryTrace, baggageHeaders);
965+
PropagationContext.fromHeaders(getOptions().getLogger(), sentryTrace, baggageHeaders);
959966
configureScope(
960-
(scope) -> {
961-
scope.setPropagationContext(propagationContext);
962-
});
967+
(scope) -> {
968+
scope.setPropagationContext(propagationContext);
969+
});
963970
if (getOptions().isTracingEnabled()) {
964971
return TransactionContext.fromPropagationContext(propagationContext);
965972
} else {
@@ -978,13 +985,6 @@ public void continueTrace(
978985
});
979986
}
980987

981-
@Override
982-
public void reportFullyDisplayed() {
983-
if (getOptions().isEnableTimeToFullDisplayTracing()) {
984-
getOptions().getFullyDisplayedReporter().reportFullyDrawn();
985-
}
986-
}
987-
988988
@Override
989989
public @Nullable SentryTraceHeader getTraceparent() {
990990
if (!isEnabled()) {
@@ -1077,4 +1077,4 @@ private static void validateOptions(final @NotNull SentryOptions options) {
10771077
"Scopes requires a DSN to be instantiated. Considering using the NoOpScopes if no DSN is available.");
10781078
}
10791079
}
1080-
}
1080+
}

0 commit comments

Comments
 (0)