@@ -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 ;
0 commit comments