Skip to content

Commit af762dd

Browse files
committed
settrace
1 parent fe8aa00 commit af762dd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -975,14 +975,11 @@ public void reportFullyDisplayed() {
975975
}
976976

977977
@Override
978-
public void continueTrace(
978+
public void setTrace(
979979
final @NotNull String traceId, final @NotNull String spanID) {
980980
@NotNull
981981
PropagationContext propagationContext = PropagationContext.fromId(traceId, spanID);
982-
configureScope(
983-
(scope) -> {
984-
scope.setPropagationContext(propagationContext);
985-
});
982+
configureScope((scope) -> scope.setPropagationContext(propagationContext));
986983
}
987984

988985
@Override
@@ -1077,4 +1074,4 @@ private static void validateOptions(final @NotNull SentryOptions options) {
10771074
"Scopes requires a DSN to be instantiated. Considering using the NoOpScopes if no DSN is available.");
10781075
}
10791076
}
1080-
}
1077+
}

0 commit comments

Comments
 (0)