Skip to content

Commit

Permalink
Merge branch 'main' into fix/configure-options-after-adding-integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanosiano authored Jul 10, 2023
2 parents 5bc4a9a + 5fe0117 commit 3f5a679
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixes

- Allow removing integrations in SentryAndroid.init ([#2826](https://github.com/getsentry/sentry-java/pull/2826))
- Fix concurrent access to frameMetrics listener ([#2823](https://github.com/getsentry/sentry-java/pull/2823))

## 6.25.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,24 @@
import io.sentry.util.Objects;
import java.lang.ref.WeakReference;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArraySet;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class SentryFrameMetricsCollector implements Application.ActivityLifecycleCallbacks {
private final @NotNull BuildInfoProvider buildInfoProvider;
private final @NotNull Set<Window> trackedWindows = new HashSet<>();
private final @NotNull Set<Window> trackedWindows = new CopyOnWriteArraySet<>();
private final @NotNull SentryOptions options;
private @Nullable Handler handler;
private @Nullable WeakReference<Window> currentWindow;
private final @NotNull HashMap<String, FrameMetricsCollectorListener> listenerMap =
new HashMap<>();
private final @NotNull Map<String, FrameMetricsCollectorListener> listenerMap =
new ConcurrentHashMap<>();
private boolean isAvailable = false;
private final WindowFrameMetricsManager windowFrameMetricsManager;

Expand Down

0 comments on commit 3f5a679

Please sign in to comment.