Skip to content

Commit 8e897f0

Browse files
authored
Merge 62cb91a into bf4a7bf
2 parents bf4a7bf + 62cb91a commit 8e897f0

File tree

15 files changed

+44
-65
lines changed

15 files changed

+44
-65
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/ManifestMetadataReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class ManifestMetadataReader {
3737
static final String SDK_NAME = "io.sentry.sdk.name";
3838
static final String SDK_VERSION = "io.sentry.sdk.version";
3939

40-
// TODO: remove on 6.x in favor of SESSION_AUTO_TRACKING_ENABLE
40+
// TODO [MAJOR]: remove on 6.x in favor of SESSION_AUTO_TRACKING_ENABLE
4141
static final String SESSION_TRACKING_ENABLE = "io.sentry.session-tracking.enable";
4242

4343
static final String AUTO_SESSION_TRACKING_ENABLE = "io.sentry.auto-session-tracking.enable";
@@ -70,7 +70,7 @@ final class ManifestMetadataReader {
7070

7171
@ApiStatus.Experimental static final String TRACE_SAMPLING = "io.sentry.traces.trace-sampling";
7272

73-
// TODO: remove in favor of TRACE_PROPAGATION_TARGETS
73+
// TODO [MAJOR]: remove in favor of TRACE_PROPAGATION_TARGETS
7474
@Deprecated static final String TRACING_ORIGINS = "io.sentry.traces.tracing-origins";
7575

7676
static final String TRACE_PROPAGATION_TARGETS = "io.sentry.traces.trace-propagation-targets";
@@ -323,7 +323,7 @@ static void applyMetadata(
323323
List<String> tracePropagationTargets =
324324
readList(metadata, logger, TRACE_PROPAGATION_TARGETS);
325325

326-
// TODO remove once TRACING_ORIGINS have been removed
326+
// TODO [MAJOR] remove once TRACING_ORIGINS have been removed
327327
if (!metadata.containsKey(TRACE_PROPAGATION_TARGETS)
328328
&& (tracePropagationTargets == null || tracePropagationTargets.isEmpty())) {
329329
tracePropagationTargets = readList(metadata, logger, TRACING_ORIGINS);

sentry-spring-jakarta/src/main/java/io/sentry/spring/jakarta/SentryTaskDecorator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
*/
1616
public final class SentryTaskDecorator implements TaskDecorator {
1717
@Override
18-
// TODO should there also be a SentryIsolatedTaskDecorator or similar that uses forkedScopes()?
18+
// TODO [HSM] should there also be a SentryIsolatedTaskDecorator or similar that uses
19+
// forkedScopes()?
1920
public @NotNull Runnable decorate(final @NotNull Runnable runnable) {
2021
final IScopes newScopes = Sentry.getCurrentScopes().forkedCurrentScope("spring.taskDecorator");
2122

sentry-spring-jakarta/src/main/java/io/sentry/spring/jakarta/webflux/ReactorUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import reactor.util.context.Context;
1010

1111
@ApiStatus.Experimental
12-
// TODO do we keep old methods around and deprecate them?
13-
// TODO do we need to offer isolated variants?
12+
// TODO [HSM] do we keep old methods around and deprecate them?
13+
// TODO [HSM] do we need to offer isolated variants?
1414
public final class ReactorUtils {
1515

1616
/**

sentry-spring/src/main/java/io/sentry/spring/SentryTaskDecorator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
*/
1616
public final class SentryTaskDecorator implements TaskDecorator {
1717
@Override
18-
// TODO should there also be a SentryIsolatedTaskDecorator or similar that uses forkedScopes()?
18+
// TODO [HSM] should there also be a SentryIsolatedTaskDecorator or similar that uses
19+
// forkedScopes()?
1920
public @NotNull Runnable decorate(final @NotNull Runnable runnable) {
2021
final IScopes newHub = Sentry.getCurrentScopes().forkedCurrentScope("spring.taskDecorator");
2122

sentry-spring/src/main/java/io/sentry/spring/webflux/SentryWebFilter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public Mono<Void> filter(
5151
final @NotNull ServerWebExchange serverWebExchange,
5252
final @NotNull WebFilterChain webFilterChain) {
5353
@NotNull IScopes requestHub = Sentry.forkedRootScopes("request.webflux");
54-
// TODO do not push / pop, use fork instead
5554
if (!requestHub.isEnabled()) {
5655
return webFilterChain.filter(serverWebExchange);
5756
}

sentry/src/main/java/io/sentry/CombinedScopeView.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ public void setFingerprint(@NotNull List<String> fingerprint) {
164164
allBreadcrumbs.addAll(scope.getBreadcrumbs());
165165
Collections.sort(allBreadcrumbs);
166166

167-
// TODO test oldest are removed first
168167
final @NotNull Queue<Breadcrumb> breadcrumbs =
169168
createBreadcrumbsList(scope.getOptions().getMaxBreadcrumbs());
170169
breadcrumbs.addAll(allBreadcrumbs);
@@ -178,7 +177,7 @@ public void setFingerprint(@NotNull List<String> fingerprint) {
178177
* @param maxBreadcrumb the max number of breadcrumbs
179178
* @return the breadcrumbs queue
180179
*/
181-
// TODO copied from Scope, should reuse instead
180+
// TODO [HSM] copied from Scope, should reuse instead
182181
private @NotNull Queue<Breadcrumb> createBreadcrumbsList(final int maxBreadcrumb) {
183182
return SynchronizedQueue.synchronizedQueue(new CircularFifoQueue<>(maxBreadcrumb));
184183
}
@@ -237,7 +236,7 @@ public void setTag(@NotNull String key, @NotNull String value) {
237236

238237
@Override
239238
public void removeTag(@NotNull String key) {
240-
// TODO should this go to all scopes?
239+
// TODO [HSM] should this go to all scopes?
241240
getDefaultWriteScope().removeTag(key);
242241
}
243242

@@ -257,7 +256,7 @@ public void setExtra(@NotNull String key, @NotNull String value) {
257256

258257
@Override
259258
public void removeExtra(@NotNull String key) {
260-
// TODO should this go to all scopes?
259+
// TODO [HSM] should this go to all scopes?
261260
getDefaultWriteScope().removeExtra(key);
262261
}
263262

@@ -307,12 +306,12 @@ public void setContexts(@NotNull String key, @NotNull Character value) {
307306

308307
@Override
309308
public void removeContexts(@NotNull String key) {
310-
// TODO should this go to all scopes?
309+
// TODO [HSM] should this go to all scopes?
311310
getDefaultWriteScope().removeContexts(key);
312311
}
313312

314313
private @NotNull IScope getDefaultWriteScope() {
315-
// TODO use Scopes.getSpecificScope?
314+
// TODO [HSM] use Scopes.getSpecificScope?
316315
if (ScopeType.CURRENT.equals(getOptions().getDefaultScopeType())) {
317316
return scope;
318317
}
@@ -343,7 +342,7 @@ public void clearAttachments() {
343342

344343
@Override
345344
public @NotNull List<EventProcessor> getEventProcessors() {
346-
// TODO mechanism for ordering event processors
345+
// TODO [HSM] mechanism for ordering event processors
347346
final @NotNull List<EventProcessor> allEventProcessors = new CopyOnWriteArrayList<>();
348347
allEventProcessors.addAll(globalScope.getEventProcessors());
349348
allEventProcessors.addAll(isolationScope.getEventProcessors());
@@ -412,7 +411,7 @@ public void setPropagationContext(@NotNull PropagationContext propagationContext
412411

413412
@Override
414413
public @NotNull IScope clone() {
415-
// TODO just return a new CombinedScopeView with forked scope?
414+
// TODO [HSM] just return a new CombinedScopeView with forked scope?
416415
return getDefaultWriteScope().clone();
417416
}
418417

@@ -435,7 +434,7 @@ public void bindClient(@NotNull ISentryClient client) {
435434

436435
@Override
437436
public @NotNull ISentryClient getClient() {
438-
// TODO checking for noop here doesn't allow disabling via client, is that ok?
437+
// TODO [HSM] checking for noop here doesn't allow disabling via client, is that ok?
439438
final @Nullable ISentryClient current = scope.getClient();
440439
if (!(current instanceof NoOpSentryClient)) {
441440
return current;

sentry/src/main/java/io/sentry/DefaultScopesStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public ISentryLifecycleToken set(@Nullable IScopes scopes) {
2121

2222
@Override
2323
public void close() {
24-
// TODO prevent further storing? would this cause problems if singleton, closed and
24+
// TODO [HSM] prevent further storing? would this cause problems if singleton, closed and
2525
// re-initialized?
2626
currentScopes.remove();
2727
}

sentry/src/main/java/io/sentry/HubAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public void flush(long timeoutMillis) {
210210

211211
@Override
212212
public @NotNull ISentryLifecycleToken makeCurrent() {
213-
// TODO this wouldn't do anything since it replaced the current with the same Scopes
213+
// TODO [HSM] this wouldn't do anything since it replaced the current with the same Scopes
214214
return NoOpScopesStorage.NoOpScopesLifecycleToken.getInstance();
215215
}
216216

sentry/src/main/java/io/sentry/Scope.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public final class Scope implements IScope {
9090

9191
private @NotNull ISentryClient client = NoOpSentryClient.getInstance();
9292

93-
// TODO intended only for global scope
94-
// TODO test for memory leak
93+
// TODO [HSM] intended only for global scope
94+
// TODO [HSM] test for memory leak
9595
private final @NotNull Map<Throwable, Pair<WeakReference<ISpan>, String>> throwableToSpan =
9696
Collections.synchronizedMap(new WeakHashMap<>());
9797

@@ -114,7 +114,7 @@ private Scope(final @NotNull Scope scope) {
114114
this.options = scope.options;
115115
this.level = scope.level;
116116
this.client = scope.client;
117-
// TODO should we do this? didn't do it for Hub
117+
// TODO [HSM] should we do this? didn't do it for Hub
118118
this.lastEventId = scope.getLastEventId();
119119

120120
final User userRef = scope.user;

sentry/src/main/java/io/sentry/ScopeType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ public enum ScopeType {
55
ISOLATION,
66
GLOBAL,
77

8-
// TODO do we need a combined as well so configureScope
8+
// TODO [HSM] do we need a combined as well so configureScope
99
COMBINED;
1010
}

0 commit comments

Comments
 (0)