Skip to content

Commit 7390e62

Browse files
Merge branch 'main' into make-native-lib-actually-optional
2 parents fe1fd00 + b0afe1f commit 7390e62

40 files changed

+1176
-236
lines changed

.github/actions/environment/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ runs:
6060
with:
6161
dotnet-version: |
6262
8.0.x
63-
9.0.202
63+
9.0.203
6464
6565
- name: Install .NET Workloads
6666
shell: bash

.github/workflows/build.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ jobs:
111111
- name: Restore .NET Dependencies
112112
run: dotnet restore Sentry-CI-Build-${{ runner.os }}.slnf --nologo
113113

114-
- name: Install Android SDKs
115-
if: runner.os == 'macOS'
116-
run: |
117-
dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android34.0 -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/"
118-
119114
- name: Build
120115
run: dotnet build Sentry-CI-Build-${{ runner.os }}.slnf -c Release --no-restore --nologo -v:minimal -flp:logfile=build.log -p:CopyLocalLockFileAssemblies=true -bl:build.binlog
121116

@@ -135,7 +130,7 @@ jobs:
135130
if: failure()
136131
uses: actions/upload-artifact@v4
137132
with:
138-
name: verify-test-results
133+
name: ${{ runner.os }}-verify-test-results
139134
path: "**/*.received.*"
140135

141136
# To save time and disk space, we only create and archive the Nuget packages when we're actually releasing.
@@ -225,18 +220,6 @@ jobs:
225220
- name: Build Native Dependencies
226221
uses: ./.github/actions/buildnative
227222

228-
- name: Install Android SDKs
229-
id: installandroidsdks
230-
continue-on-error: true
231-
if: runner.os == 'macOS'
232-
run: |
233-
dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android34.0 -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/"
234-
235-
- name: Install Android SDKs (retry)
236-
if: steps.installandroidsdks.outcome=='failure' && runner.os == 'macOS'
237-
run: |
238-
dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android34.0 -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/"
239-
240223
- name: Publish Test app (macOS)
241224
run: dotnet publish test/Sentry.TrimTest/Sentry.TrimTest.csproj -c Release -r osx-arm64
242225

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: ./.github/actions/environment
3636

3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # pin@v2
38+
uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # pin@v2
3939
with:
4040
languages: csharp
4141

@@ -49,6 +49,6 @@ jobs:
4949
run: dotnet build Sentry-CI-CodeQL.slnf --no-restore --nologo
5050

5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # pin@v2
52+
uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # pin@v2
5353
with:
5454
category: '/language:csharp'

CHANGELOG.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,26 @@
55
### Features
66

77
- Option to disable the SentryNative integration ([#4107](https://github.com/getsentry/sentry-dotnet/pull/4107))
8+
- Reintroduced experimental support for Session Replay on Android ([#4097](https://github.com/getsentry/sentry-dotnet/pull/4097))
89

910
### Fixes
1011

12+
- Ensure user exception data is not removed by AspNetCoreExceptionProcessor ([#4016](https://github.com/getsentry/sentry-dotnet/pull/4106))
1113
- Prevent users from disabling AndroidEnableAssemblyCompression which leads to untrappable crash ([#4089](https://github.com/getsentry/sentry-dotnet/pull/4089))
14+
- Fixed MSVCRT build warning on Windows ([#4111](https://github.com/getsentry/sentry-dotnet/pull/4111))
15+
16+
### Features
17+
18+
- If an incoming HTTP request has the `traceparent` header, it is now parsed and interpreted like the `sentry-trace` header. Outgoing requests now contain the `traceparent` header to facilitate integration with servesr that only support the [W3C Trace Context](https://www.w3.org/TR/trace-context/). ([#4084](https://github.com/getsentry/sentry-dotnet/pull/4084))
19+
20+
### Dependencies
21+
22+
- Bump Cocoa SDK from v8.39.0 to v8.46.0 ([#4103](https://github.com/getsentry/sentry-dotnet/pull/4103))
23+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8460)
24+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.39.0...8.46.0)
25+
- Bump Native SDK from v0.8.3 to v0.8.4 ([#4122](https://github.com/getsentry/sentry-dotnet/pull/4122))
26+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#084)
27+
- [diff](https://github.com/getsentry/sentry-native/compare/0.8.3...0.8.4)
1228

1329
## 5.5.1
1430

@@ -24,6 +40,12 @@
2440
- The `IScopeObserver` now has an `SetTrace` that allows observing changes to the scope's trace context. The SDK uses this to propagate the `trace ID` to `sentry-native`. This allows Sentry to connect errors coming from all layers of your application ([#4026](https://github.com/getsentry/sentry-dotnet/pull/4026))
2541
- Exception.HResult is now included in the mechanism data for all exceptions ([#4029](https://github.com/getsentry/sentry-dotnet/pull/4029))
2642

43+
### Dependencies
44+
45+
- Bump Native SDK from v0.8.2 to v0.8.3 [#4072](https://github.com/getsentry/sentry-dotnet/pull/4072))
46+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#083)
47+
- [diff](https://github.com/getsentry/sentry-native/compare/0.8.2...0.8.3)
48+
2749
### Fixes
2850

2951
- Fixed symbolication and source context for net9.0-android ([#4033](https://github.com/getsentry/sentry-dotnet/pull/4033))
@@ -35,7 +57,7 @@
3557

3658
### Dependencies
3759

38-
- Bump Native SDK from v0.8.1 to v0.8.2 ([#4050](https://github.com/getsentry/sentry-dotnet/pull/4050))
60+
- Bump Native SDK from v0.8.1 to v0.8.2 ([#4050](https://github.com/getsentry/sentry-dotnet/pull/4050)
3961
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#082)
4062
- [diff](https://github.com/getsentry/sentry-native/compare/0.8.1...0.8.2)
4163
- Bump CLI from v2.42.2 to v2.43.0 ([#4036](https://github.com/getsentry/sentry-dotnet/pull/4036), [#4049](https://github.com/getsentry/sentry-dotnet/pull/4049), [#4060](https://github.com/getsentry/sentry-dotnet/pull/4060), [#4062](https://github.com/getsentry/sentry-dotnet/pull/4062))
@@ -117,6 +139,11 @@
117139
- .NET on iOS: Add experimental EnableAppHangTrackingV2 configuration flag to the options binding SDK ([#3877](https://github.com/getsentry/sentry-dotnet/pull/3877))
118140
- Added `SentryOptions.DisableSentryHttpMessageHandler`. Useful if you're using `OpenTelemetry.Instrumentation.Http` and ending up with duplicate spans. ([#3879](https://github.com/getsentry/sentry-dotnet/pull/3879))
119141

142+
### Dependencies
143+
144+
- Bump Native SDK from v0.7.17 to v0.7.18 ([#3891](https://github.com/getsentry/sentry-dotnet/pull/3891))
145+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0718)
146+
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.17...0.7.18)
120147
### Fixes
121148

122149
- Prevent Native EXC_BAD_ACCESS signal errors from being captured when managed NullRefrenceExceptions occur ([#3909](https://github.com/getsentry/sentry-dotnet/pull/3909))

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
-->
5151
<PropertyGroup>
5252
<TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier>
53-
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'ios'">12.2</SupportedOSPlatformVersion>
53+
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'ios'">13.0</SupportedOSPlatformVersion>
5454
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
5555
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'android'">21.0</SupportedOSPlatformVersion>
5656
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
-->
1111
<PropertyGroup>
1212
<TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier>
13-
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'ios'">12.2</SupportedOSPlatformVersion>
13+
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'ios'">13.0</SupportedOSPlatformVersion>
1414
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
1515
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'android'">21.0</SupportedOSPlatformVersion>
1616
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.202",
3+
"version": "9.0.203",
44
"rollForward": "disable",
55
"allowPrerelease": false
66
}

modules/sentry-cocoa.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = 8.39.0
1+
version = 8.46.0
22
repo = https://github.com/getsentry/sentry-cocoa

modules/sentry-native

Submodule sentry-native updated 63 files

samples/Sentry.Samples.Android/MainActivity.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ protected override void OnCreate(Bundle? savedInstanceState)
2121
// Enable Native Android SDK ANR detection
2222
options.Native.AnrEnabled = true;
2323

24+
// Currently experimental support is only available on Android
25+
options.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 1.0;
26+
options.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 1.0;
27+
options.Native.ExperimentalOptions.SessionReplay.MaskAllImages = false;
28+
options.Native.ExperimentalOptions.SessionReplay.MaskAllText = false;
29+
2430
options.SetBeforeSend(evt =>
2531
{
2632
if (evt.Exception?.Message.Contains("Something you don't care want logged?") ?? false)

0 commit comments

Comments
 (0)