Skip to content

Commit 0ee7e50

Browse files
authored
Merge branch 'main' into lcian/feat/mdc-logs
2 parents 9438ad1 + bc10971 commit 0ee7e50

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
### Features
66

77
- Attach MDC properties to logs as attributes ([#4786](https://github.com/getsentry/sentry-java/pull/4786))
8-
- MDC properties set using supported logging frameworks (Logback, Log4j2, java.util.Logging) are now attached to structured logs as attributes
8+
- MDC properties set using supported logging frameworks (Logback, Log4j2, java.util.Logging) are now attached to structured logs as attributes.
99
- This means that you will be able to filter/aggregate logs in the product based on these properties.
10-
- All properties are sent. To avoid sending certain properties, use the `beforeSendLog` hook. You can also set up [Advanced Data
11-
Scrubbing rules](https://docs.sentry.io/security-legal-pii/scrubbing/advanced-datascrubbing/) to redact sensitive information.
10+
- All properties are sent. To avoid sending certain properties, use the `beforeSendLog` hook. You can also set up [Advanced Data Scrubbing rules](https://docs.sentry.io/security-legal-pii/scrubbing/advanced-datascrubbing/) to redact sensitive information.
1211
- Note that keys containing spaces are not supported.
1312

13+
### Fixes
14+
15+
- Use logger from options for JVM profiler ([#4771](https://github.com/getsentry/sentry-java/pull/4771))
16+
1417
## 8.23.0
1518

1619
### Features

sentry-android-distribution/src/main/java/io/sentry/android/distribution/DistributionHttpClient.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ internal class DistributionHttpClient(private val options: SentryOptions) {
2222

2323
/** Parameters for checking updates. */
2424
data class UpdateCheckParams(
25-
val mainBinaryIdentifier: String,
2625
val appId: String,
2726
val platform: String = "android",
2827
val versionCode: Long,
@@ -53,8 +52,7 @@ internal class DistributionHttpClient(private val options: SentryOptions) {
5352
append(
5453
"/api/0/projects/${URLEncoder.encode(orgSlug, "UTF-8")}/${URLEncoder.encode(projectSlug, "UTF-8")}/preprodartifacts/check-for-updates/"
5554
)
56-
append("?main_binary_identifier=${URLEncoder.encode(params.mainBinaryIdentifier, "UTF-8")}")
57-
append("&app_id=${URLEncoder.encode(params.appId, "UTF-8")}")
55+
append("?app_id=${URLEncoder.encode(params.appId, "UTF-8")}")
5856
append("&platform=${URLEncoder.encode(params.platform, "UTF-8")}")
5957
append("&build_number=${URLEncoder.encode(params.versionCode.toString(), "UTF-8")}")
6058
append("&build_version=${URLEncoder.encode(params.versionName, "UTF-8")}")

sentry-android-distribution/src/main/java/io/sentry/android/distribution/DistributionIntegration.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public class DistributionIntegration(context: Context) : Integration, IDistribut
133133
val appId = context.applicationInfo.packageName
134134

135135
DistributionHttpClient.UpdateCheckParams(
136-
mainBinaryIdentifier = appId,
137136
appId = appId,
138137
platform = "android",
139138
versionCode = versionCode,

sentry-android-distribution/src/test/java/io/sentry/android/distribution/DistributionHttpClientTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class DistributionHttpClientTest {
3434
fun `test checkForUpdates with real API`() {
3535
val params =
3636
DistributionHttpClient.UpdateCheckParams(
37-
mainBinaryIdentifier = "com.emergetools.hackernews",
3837
appId = "com.emergetools.hackernews",
3938
versionName = "1.0.0",
4039
versionCode = 5L,

sentry/src/main/java/io/sentry/Sentry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ private static void initJvmContinuousProfiling(@NotNull SentryOptions options) {
710710

711711
final IContinuousProfiler continuousProfiler =
712712
ProfilingServiceLoader.loadContinuousProfiler(
713-
new SystemOutLogger(),
713+
options.getLogger(),
714714
profilingTracesDirPath,
715715
options.getProfilingTracesHz(),
716716
options.getExecutorService());

0 commit comments

Comments
 (0)