You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d9f683
Browse filesBrowse the repository at this point in the historyBrowse files
feat(spring-jakarta): Add cache tracing for Spring Boot 3 / Spring 6
Port cache tracing classes from sentry-spring-7 to sentry-spring-jakarta,
covering Spring Boot 3 (Spring Framework 6.x) users. Includes
SentryCacheWrapper, SentryCacheManagerWrapper, SentryCacheBeanPostProcessor,
and auto-configuration in sentry-spring-boot-jakarta.
The retrieve() overrides for CompletableFuture/reactive cache operations
are included and safe on Spring 6.0 (where retrieve() doesn't exist on
the Cache interface) — they're simply dead code, never called by the
framework until Spring 6.1+.
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: sentry-spring-jakarta/api/sentry-spring-jakarta.api
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,35 @@ public final class io/sentry/spring/jakarta/SpringSecuritySentryUserProvider : i
104
104
public fun provideUser ()Lio/sentry/protocol/User;
105
105
}
106
106
107
+
public final class io/sentry/spring/jakarta/cache/SentryCacheBeanPostProcessor : org/springframework/beans/factory/config/BeanPostProcessor, org/springframework/core/PriorityOrdered {
108
+
public fun <init> ()V
109
+
public fun getOrder ()I
110
+
public fun postProcessAfterInitialization (Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
111
+
}
112
+
113
+
public final class io/sentry/spring/jakarta/cache/SentryCacheManagerWrapper : org/springframework/cache/CacheManager {
114
+
public fun <init> (Lorg/springframework/cache/CacheManager;Lio/sentry/IScopes;)V
115
+
public fun getCache (Ljava/lang/String;)Lorg/springframework/cache/Cache;
116
+
public fun getCacheNames ()Ljava/util/Collection;
117
+
}
118
+
119
+
public final class io/sentry/spring/jakarta/cache/SentryCacheWrapper : org/springframework/cache/Cache {
120
+
public fun <init> (Lorg/springframework/cache/Cache;Lio/sentry/IScopes;)V
121
+
public fun clear ()V
122
+
public fun evict (Ljava/lang/Object;)V
123
+
public fun evictIfPresent (Ljava/lang/Object;)Z
124
+
public fun get (Ljava/lang/Object;)Lorg/springframework/cache/Cache$ValueWrapper;
125
+
public fun get (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
126
+
public fun get (Ljava/lang/Object;Ljava/util/concurrent/Callable;)Ljava/lang/Object;
127
+
public fun getName ()Ljava/lang/String;
128
+
public fun getNativeCache ()Ljava/lang/Object;
129
+
public fun invalidate ()Z
130
+
public fun put (Ljava/lang/Object;Ljava/lang/Object;)V
131
+
public fun putIfAbsent (Ljava/lang/Object;Ljava/lang/Object;)Lorg/springframework/cache/Cache$ValueWrapper;
132
+
public fun retrieve (Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
133
+
public fun retrieve (Ljava/lang/Object;Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
134
+
}
135
+
107
136
public abstract interface annotation class io/sentry/spring/jakarta/checkin/SentryCheckIn : java/lang/annotation/Annotation {
108
137
public abstract fun heartbeat ()Z
109
138
public abstract fun monitorSlug ()Ljava/lang/String;
0 commit comments