Skip to content

Commit

Permalink
settrace
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandfoxes committed Feb 21, 2025
1 parent fe8aa00 commit af762dd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sentry/src/main/java/io/sentry/Scopes.java
Original file line number Diff line number Diff line change
Expand Up @@ -975,14 +975,11 @@ public void reportFullyDisplayed() {
}

@Override
public void continueTrace(
public void setTrace(
final @NotNull String traceId, final @NotNull String spanID) {
@NotNull
PropagationContext propagationContext = PropagationContext.fromId(traceId, spanID);
configureScope(
(scope) -> {
scope.setPropagationContext(propagationContext);
});
configureScope((scope) -> scope.setPropagationContext(propagationContext));
}

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

0 comments on commit af762dd

Please sign in to comment.