Skip to content

Commit 76ae6cb

Browse files
authored
Merge branch 'main' into feat/detect-mixed-sdk-versions
2 parents 72c554b + 1090788 commit 76ae6cb

File tree

22 files changed

+183
-109
lines changed

22 files changed

+183
-109
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4141

4242
- name: Initialize CodeQL
43-
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # pin@v2
43+
uses: github/codeql-action/init@5f8171a638ada777af81d42b55959a643bb29017 # pin@v2
4444
with:
4545
languages: 'java'
4646

@@ -49,4 +49,4 @@ jobs:
4949
./gradlew buildForCodeQL
5050
5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # pin@v2
52+
uses: github/codeql-action/analyze@5f8171a638ada777af81d42b55959a643bb29017 # pin@v2

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Get auth token
2121
id: token
22-
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
22+
uses: actions/create-github-app-token@af35edadc00be37caa72ed9f3e6d5f7801bfdf09 # v1.11.7
2323
with:
2424
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2525
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,24 @@
55
### Features
66

77
- Increase http timeouts from 5s to 30s to have a better chance of events being delivered without retry ([#4276](https://github.com/getsentry/sentry-java/pull/4276))
8+
- Retain baggage sample rate/rand values as doubles ([#4279](https://github.com/getsentry/sentry-java/pull/4279))
89

910
### Fixes
1011

1112
- Do not override user-defined `SentryOptions` ([#4262](https://github.com/getsentry/sentry-java/pull/4262))
13+
- Session Replay: Change bitmap config to `ARGB_8888` for screenshots ([#4282](https://github.com/getsentry/sentry-java/pull/4282))
14+
15+
### Internal
16+
17+
- Added `platform` to SentryEnvelopeItemHeader ([#4287](https://github.com/getsentry/sentry-java/pull/4287))
18+
- Set `android` platform to ProfileChunk envelope item header
1219

1320
### Dependencies
1421

1522
- Bump Native SDK from v0.8.1 to v0.8.2 ([#4267](https://github.com/getsentry/sentry-java/pull/4267))
1623
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#082)
1724
- [diff](https://github.com/getsentry/sentry-native/compare/0.8.1...0.8.2)
25+
- Bump Spring Boot from 2.7.5 to 2.7.18 ([#3496](https://github.com/getsentry/sentry-java/pull/3496))
1826

1927
## 8.5.0
2028

@@ -570,6 +578,12 @@ If you have been using `8.0.0-rc.4` of the Java SDK, here's the new changes that
570578
- We are planning to improve this in the future but opted for this fix first.
571579
- Fix swallow NDK loadLibrary errors ([#4082](https://github.com/getsentry/sentry-java/pull/4082))
572580

581+
## 7.22.5
582+
583+
### Fixes
584+
585+
- Session Replay: Change bitmap config to `ARGB_8888` for screenshots ([#4282](https://github.com/getsentry/sentry-java/pull/4282))
586+
573587
## 7.22.4
574588

575589
### Fixes

buildSrc/src/main/java/Config.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Config {
66
val kotlinVersion = "1.9.24"
77
val kotlinStdLib = "stdlib-jdk8"
88

9-
val springBootVersion = "2.7.5"
9+
val springBootVersion = "2.7.18"
1010
val springBoot3Version = "3.4.2"
1111
val kotlinCompatibleLanguageVersion = "1.6"
1212

sentry-android-core/src/test/java/io/sentry/android/core/InternalSentrySdkTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ class InternalSentrySdkTest {
523523
val propagationContext = scope.propagationContext
524524
assertEquals(SentryId(traceId), propagationContext.traceId)
525525
assertEquals(SpanId(spanId), propagationContext.parentSpanId)
526-
assertEquals(sampleRate, propagationContext.baggage.sampleRateDouble)
527-
assertEquals(sampleRand, propagationContext.baggage.sampleRandDouble)
526+
assertEquals(sampleRate, propagationContext.baggage.sampleRate!!, 0.0001)
527+
assertEquals(sampleRand, propagationContext.baggage.sampleRand!!, 0.0001)
528528
}
529529
}
530530
}

sentry-android-replay/src/main/java/io/sentry/android/replay/ScreenshotRecorder.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ internal class ScreenshotRecorder(
5252
Bitmap.createBitmap(
5353
1,
5454
1,
55-
Bitmap.Config.RGB_565
55+
Bitmap.Config.ARGB_8888
5656
)
5757
}
5858
private val screenshot = Bitmap.createBitmap(
5959
config.recordingWidth,
6060
config.recordingHeight,
61-
Bitmap.Config.RGB_565
61+
Bitmap.Config.ARGB_8888
6262
)
6363
private val singlePixelBitmapCanvas: Canvas by lazy(NONE) { Canvas(singlePixelBitmap) }
6464
private val prescaledMatrix by lazy(NONE) {
@@ -216,7 +216,9 @@ internal class ScreenshotRecorder(
216216
fun close() {
217217
unbind(rootView?.get())
218218
rootView?.clear()
219-
screenshot.recycle()
219+
if (!screenshot.isRecycled) {
220+
screenshot.recycle()
221+
}
220222
isCapturing.set(false)
221223
}
222224

sentry-opentelemetry/sentry-opentelemetry-core/src/test/kotlin/SentrySpanProcessorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class SentrySpanProcessorTest {
406406
assertTrue(it.parentSamplingDecision!!.sampled)
407407
if (continuesWithFilledBaggage) {
408408
assertEquals("2722d9f6ec019ade60c776169d9a8904", it.baggage?.traceId)
409-
assertEquals("1", it.baggage?.sampleRate)
409+
assertEquals(1.0, it.baggage?.sampleRate)
410410
assertEquals("HTTP GET", it.baggage?.transaction)
411411
assertEquals("502f25099c204a2fbf4cb16edc5975d1", it.baggage?.publicKey)
412412
assertFalse(it.baggage!!.isMutable)

sentry/api/sentry.api

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public abstract interface class io/sentry/BackfillingEventProcessor : io/sentry/
3232
public final class io/sentry/Baggage {
3333
public fun <init> (Lio/sentry/Baggage;)V
3434
public fun <init> (Lio/sentry/ILogger;)V
35-
public fun <init> (Ljava/util/Map;Ljava/lang/String;ZZLio/sentry/ILogger;)V
36-
public fun forceSetSampleRate (Ljava/lang/String;)V
35+
public fun <init> (Ljava/util/Map;Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/String;ZZLio/sentry/ILogger;)V
36+
public fun forceSetSampleRate (Ljava/lang/Double;)V
3737
public fun freeze ()V
3838
public static fun fromEvent (Lio/sentry/SentryEvent;Lio/sentry/SentryOptions;)Lio/sentry/Baggage;
3939
public static fun fromHeader (Ljava/lang/String;)Lio/sentry/Baggage;
@@ -47,10 +47,8 @@ public final class io/sentry/Baggage {
4747
public fun getPublicKey ()Ljava/lang/String;
4848
public fun getRelease ()Ljava/lang/String;
4949
public fun getReplayId ()Ljava/lang/String;
50-
public fun getSampleRand ()Ljava/lang/String;
51-
public fun getSampleRandDouble ()Ljava/lang/Double;
52-
public fun getSampleRate ()Ljava/lang/String;
53-
public fun getSampleRateDouble ()Ljava/lang/Double;
50+
public fun getSampleRand ()Ljava/lang/Double;
51+
public fun getSampleRate ()Ljava/lang/Double;
5452
public fun getSampled ()Ljava/lang/String;
5553
public fun getThirdPartyHeader ()Ljava/lang/String;
5654
public fun getTraceId ()Ljava/lang/String;
@@ -64,9 +62,8 @@ public final class io/sentry/Baggage {
6462
public fun setPublicKey (Ljava/lang/String;)V
6563
public fun setRelease (Ljava/lang/String;)V
6664
public fun setReplayId (Ljava/lang/String;)V
67-
public fun setSampleRand (Ljava/lang/String;)V
68-
public fun setSampleRandDouble (Ljava/lang/Double;)V
69-
public fun setSampleRate (Ljava/lang/String;)V
65+
public fun setSampleRand (Ljava/lang/Double;)V
66+
public fun setSampleRate (Ljava/lang/Double;)V
7067
public fun setSampled (Ljava/lang/String;)V
7168
public fun setTraceId (Ljava/lang/String;)V
7269
public fun setTransaction (Ljava/lang/String;)V
@@ -2762,11 +2759,12 @@ public final class io/sentry/SentryEnvelopeItem {
27622759
}
27632760

27642761
public final class io/sentry/SentryEnvelopeItemHeader : io/sentry/JsonSerializable, io/sentry/JsonUnknown {
2765-
public fun <init> (Lio/sentry/SentryItemType;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
2762+
public fun <init> (Lio/sentry/SentryItemType;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
27662763
public fun getAttachmentType ()Ljava/lang/String;
27672764
public fun getContentType ()Ljava/lang/String;
27682765
public fun getFileName ()Ljava/lang/String;
27692766
public fun getLength ()I
2767+
public fun getPlatform ()Ljava/lang/String;
27702768
public fun getType ()Lio/sentry/SentryItemType;
27712769
public fun getUnknown ()Ljava/util/Map;
27722770
public fun serialize (Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
@@ -2784,6 +2782,7 @@ public final class io/sentry/SentryEnvelopeItemHeader$JsonKeys {
27842782
public static final field CONTENT_TYPE Ljava/lang/String;
27852783
public static final field FILENAME Ljava/lang/String;
27862784
public static final field LENGTH Ljava/lang/String;
2785+
public static final field PLATFORM Ljava/lang/String;
27872786
public static final field TYPE Ljava/lang/String;
27882787
public fun <init> ()V
27892788
}

0 commit comments

Comments
 (0)