Skip to content

Commit

Permalink
Merge branch '8.x.x' into feat/hsm-30-get-global-scope-forked-root-sc…
Browse files Browse the repository at this point in the history
…opes
  • Loading branch information
adinauer authored Apr 23, 2024
2 parents b1630ea + 4650d04 commit c3d5466
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import reactor.core.publisher.Mono;
import reactor.util.context.Context;

// TODO deprecate and replace with "withSentryScopes" etc.
@ApiStatus.Experimental
// TODO [HSM] do we keep old methods around and deprecate them?
// TODO [HSM] do we need to offer isolated variants?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@ApiStatus.Experimental
public final class SentryScheduleHook implements Function<Runnable, Runnable> {
@Override
@SuppressWarnings("deprecation")
public Runnable apply(final @NotNull Runnable runnable) {
final IScopes newScopes = Sentry.getCurrentScopes().forkedCurrentScope("spring.scheduleHook");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@ApiStatus.Experimental
public final class SentryScheduleHook implements Function<Runnable, Runnable> {
@Override
@SuppressWarnings("deprecation")
public Runnable apply(final @NotNull Runnable runnable) {
final IScopes newScopes = Sentry.getCurrentScopes().forkedCurrentScope("spring.scheduleHook");

Expand Down
3 changes: 3 additions & 0 deletions sentry/api/sentry.api
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ public abstract interface class io/sentry/IScope {
public abstract fun removeContexts (Ljava/lang/String;)V
public abstract fun removeExtra (Ljava/lang/String;)V
public abstract fun removeTag (Ljava/lang/String;)V
public abstract fun setClient (Lio/sentry/ISentryClient;)V
public abstract fun setContexts (Ljava/lang/String;Ljava/lang/Boolean;)V
public abstract fun setContexts (Ljava/lang/String;Ljava/lang/Character;)V
public abstract fun setContexts (Ljava/lang/String;Ljava/lang/Number;)V
Expand Down Expand Up @@ -1459,6 +1460,7 @@ public final class io/sentry/NoOpScope : io/sentry/IScope {
public fun removeContexts (Ljava/lang/String;)V
public fun removeExtra (Ljava/lang/String;)V
public fun removeTag (Ljava/lang/String;)V
public fun setClient (Lio/sentry/ISentryClient;)V
public fun setContexts (Ljava/lang/String;Ljava/lang/Boolean;)V
public fun setContexts (Ljava/lang/String;Ljava/lang/Character;)V
public fun setContexts (Ljava/lang/String;Ljava/lang/Number;)V
Expand Down Expand Up @@ -1901,6 +1903,7 @@ public final class io/sentry/Scope : io/sentry/IScope {
public fun removeContexts (Ljava/lang/String;)V
public fun removeExtra (Ljava/lang/String;)V
public fun removeTag (Ljava/lang/String;)V
public fun setClient (Lio/sentry/ISentryClient;)V
public fun setContexts (Ljava/lang/String;Ljava/lang/Boolean;)V
public fun setContexts (Ljava/lang/String;Ljava/lang/Character;)V
public fun setContexts (Ljava/lang/String;Ljava/lang/Number;)V
Expand Down
1 change: 1 addition & 0 deletions sentry/src/main/java/io/sentry/SentryWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public static <U> Callable<U> wrapCallableIsolated(final @NotNull Callable<U> ca
* @return the wrapped {@link Supplier}
* @param <U> - the result type of the {@link Supplier}
*/
@SuppressWarnings("deprecation")
public static <U> Supplier<U> wrapSupplier(final @NotNull Supplier<U> supplier) {
final IScopes newScopes = Sentry.forkedCurrentScope("wrapSupplier");

Expand Down

0 comments on commit c3d5466

Please sign in to comment.