From f0c530a5dbf8b14ae191cde0bd0feacfd254597a Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Tue, 4 Jun 2024 15:00:58 +0200 Subject: [PATCH] fix locale --- .../main/java/io/sentry/android/core/InternalSentrySdk.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java b/sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java index d5f58bc93b..a4d1db09df 100644 --- a/sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java +++ b/sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java @@ -29,6 +29,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.concurrent.atomic.AtomicReference; import org.jetbrains.annotations.ApiStatus; @@ -219,7 +220,7 @@ public static Map getAppStartMeasurement() { final @NotNull Map result = new HashMap<>(); result.put("spans", spans); - result.put("type", metrics.getAppStartType().toString().toLowerCase()); + result.put("type", metrics.getAppStartType().toString().toLowerCase(Locale.ROOT)); if (metrics.getAppStartTimeSpan().hasStarted()) { result.put("app_start_timestamp_ms", metrics.getAppStartTimeSpan().getStartTimestampMs()); }