File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
sentry-spring/src/main/java/io/sentry/spring/tracing Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1212* Enhancement: Polish Performance API (#1165 )
1313* Enhancement: Set "debug" through external properties (#1186 )
1414* Enhancement: Simplify Spring integration (#1188 )
15+ * Enhancement: Enable Kotlin map-like access on CustomSamplingContext (#1192 )
1516* Enhancement: Auto register custom ITransportFactory in Spring integration (#1194 )
1617* Enhancement: Improve Kotlin property access in Performance API (#1193 )
1718
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ private ITransaction startTransaction(
8989 final String name = request .getMethod () + " " + request .getRequestURI ();
9090
9191 final CustomSamplingContext customSamplingContext = new CustomSamplingContext ();
92- customSamplingContext .put ("request" , request );
92+ customSamplingContext .set ("request" , request );
9393
9494 if (sentryTraceHeader != null ) {
9595 try {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public final class io/sentry/CustomSamplingContext {
4949 public fun <init> ()V
5050 public fun get (Ljava/lang/String;)Ljava/lang/Object;
5151 public fun getData ()Ljava/util/Map;
52- public fun put (Ljava/lang/String;Ljava/lang/Object;)V
52+ public fun set (Ljava/lang/String;Ljava/lang/Object;)V
5353}
5454
5555public final class io/sentry/DateUtils {
Original file line number Diff line number Diff line change 1313public final class CustomSamplingContext {
1414 private final @ NotNull Map <String , Object > data = new HashMap <>();
1515
16- public void put (final @ NotNull String key , final @ Nullable Object value ) {
16+ public void set (final @ NotNull String key , final @ Nullable Object value ) {
1717 Objects .requireNonNull (key , "key is required" );
1818 this .data .put (key , value );
1919 }
You can’t perform that action at this time.
0 commit comments