Skip to content

Commit 88d63f0

Browse files
committed
Merge branch 'main' into fix/filesystem
2 parents 2803559 + 1621b6c commit 88d63f0

15 files changed

+74
-16
lines changed

.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@8214744c546c1e5c8f03dde8fab3a7353211988d # pin@v2
38+
uses: github/codeql-action/init@294a9d92911152fe08befb9ec03e240add280cb3 # pin@v2
3939
with:
4040
languages: csharp
4141

@@ -46,6 +46,6 @@ jobs:
4646
run: dotnet build Sentry-CI-CodeQL.slnf --no-restore --nologo
4747

4848
- name: Perform CodeQL Analysis
49-
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # pin@v2
49+
uses: github/codeql-action/analyze@294a9d92911152fe08befb9ec03e240add280cb3 # pin@v2
5050
with:
5151
category: '/language:csharp'

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
## Unreleased
44

5+
### API Changes
6+
7+
- The `SentrySdk.Metrics` module is deprecated and will be removed in the next major release.
8+
Sentry will reject all metrics sent after October 7, 2024.
9+
Learn more: https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics ([#3619](https://github.com/getsentry/sentry-dotnet/pull/3619))
10+
11+
### Dependencies
12+
13+
- Bump Native SDK from v0.7.9 to v0.7.10 ([#3623](https://github.com/getsentry/sentry-dotnet/pull/3623))
14+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0710)
15+
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.9...0.7.10)
16+
- Bump CLI from v2.36.1 to v2.36.2 ([#3624](https://github.com/getsentry/sentry-dotnet/pull/3624))
17+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2362)
18+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.36.1...2.36.2)
19+
20+
## 4.11.0
21+
522
### Features
623

724
- Added a flag to options `DisableFileWrite` to allow users to opt-out of all file writing operations. Note that toggling this will affect features such as offline caching and auto-session tracking and release health as these rely on some file persistency ([#3614](https://github.com/getsentry/sentry-dotnet/pull/3614))

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<VersionPrefix>4.10.2</VersionPrefix>
4+
<VersionPrefix>4.11.0</VersionPrefix>
55
<LangVersion>12</LangVersion>
66
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -70,7 +70,7 @@
7070

7171
<!-- Set the version and local path for Sentry CLI (downloaded in the restore phase of Sentry.csproj) -->
7272
<PropertyGroup Condition="'$(SolutionName)' != 'Sentry.Unity'">
73-
<SentryCLIVersion>2.36.1</SentryCLIVersion>
73+
<SentryCLIVersion>2.36.2</SentryCLIVersion>
7474
<SentryCLIDirectory>$(MSBuildThisFileDirectory)tools\sentry-cli\$(SentryCLIVersion)\</SentryCLIDirectory>
7575
</PropertyGroup>
7676

samples/Sentry.Samples.Console.Metrics/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#pragma warning disable CS0618 // Obsolete Warning
12
using System.Diagnostics.Metrics;
23
using System.Text.RegularExpressions;
34

@@ -137,3 +138,4 @@ private static async Task CallSampleApiAsync()
137138
System.Console.WriteLine($"GET {url} {result.StatusCode}");
138139
}
139140
}
141+
#pragma warning restore CS0618

src/Sentry/Extensibility/HubAdapter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ public Task FlushAsync(TimeSpan timeout)
288288
=> SentrySdk.FlushAsync(timeout);
289289

290290
/// <inheritdoc cref="IMetricAggregator"/>
291+
[Obsolete("The SentrySdk.Metrics module is deprecated and will be removed in the next major release. " +
292+
"Sentry will reject all metrics sent after October 7, 2024." +
293+
"Learn more: https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics")]
291294
public IMetricAggregator Metrics
292295
=> SentrySdk.Metrics;
293296

src/Sentry/Internal/Hub.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,7 @@ public void Dispose()
659659

660660
try
661661
{
662-
Metrics.FlushAsync().ContinueWith(_ =>
663-
CurrentClient.FlushAsync(_options.ShutdownTimeout).ConfigureAwait(false).GetAwaiter().GetResult()
664-
).ConfigureAwait(false).GetAwaiter().GetResult();
662+
CurrentClient.FlushAsync(_options.ShutdownTimeout).ConfigureAwait(false).GetAwaiter().GetResult();
665663
}
666664
catch (Exception e)
667665
{

src/Sentry/Internal/SystemDiagnosticsMetricsListener.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ internal class SystemDiagnosticsMetricsListener : IDisposable
1111

1212
internal readonly MeterListener _sentryListener = new();
1313

14+
#pragma warning disable CS0618 // Obsolete Warning
1415
private SystemDiagnosticsMetricsListener(ExperimentalMetricsOptions metricsOptions)
1516
: this(metricsOptions, () => SentrySdk.Metrics)
17+
#pragma warning restore CS0618
1618
{
1719
}
1820

21+
1922
/// <summary>
2023
/// Overload for testing purposes - allows us to supply a mock IMetricAggregator
2124
/// </summary>

src/Sentry/Sentry.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@
116116
<_OSArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</_OSArchitecture>
117117
</PropertyGroup>
118118
<ItemGroup>
119-
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('OSX')) And $(_OSArchitecture) == 'Arm64')" Include="sentry-cli-Darwin-arm64" FileHash="b840504663e5e4c9cbc0e71f9d43081cc85504cfd70c1db01e73b170c4467204" />
120-
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('OSX')) And $(_OSArchitecture) == 'X64')" Include="sentry-cli-Darwin-x86_64" FileHash="06efaf6b2c617dbefdb787e0a92ec9a029ef0afbeb808f1865f97e4201d61488" />
121-
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Linux')) And $(_OSArchitecture) == 'Arm64')" Include="sentry-cli-Linux-aarch64" FileHash="605a94cdc60edce7891457116d2f04ffec3d4f7c21fc51dbcd84eb877f34d50e" />
122-
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Linux')) And $(_OSArchitecture) == 'X86')" Include="sentry-cli-Linux-i686" FileHash="adad98902ed0e5001c60a2783684417ef147c3229da97812ee18ac75af65e733" />
123-
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Linux')) And $(_OSArchitecture) == 'X64')" Include="sentry-cli-Linux-x86_64" FileHash="4c3ff70421eecf5c4dbc6d15256a9c7eb28d6804d3e1b6717edf3a1a8b7a05c3" />
124-
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Windows')) And $(_OSArchitecture) == 'X86')" Include="sentry-cli-Windows-i686.exe" FileHash="b24621e338ef44892a735fb4d65eac8f0193fbbe4a2a20b2f3a89702ccdaad07" />
125-
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Windows')) And $(_OSArchitecture) != 'X86')" Include="sentry-cli-Windows-x86_64.exe" FileHash="cdb452c61daa25d02a2607ed6411216fc67e6feb0f75693931309c3830cd5543" />
119+
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('OSX')) And $(_OSArchitecture) == 'Arm64')" Include="sentry-cli-Darwin-arm64" FileHash="decbca422a4801e390a034f79da236d3f3c658b7ff765a717e67173c0f7b40de" />
120+
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('OSX')) And $(_OSArchitecture) == 'X64')" Include="sentry-cli-Darwin-x86_64" FileHash="301b46354c428d523c8c87b9c5fac52eb14b3bb7bcde912c58d498e170f1b1e4" />
121+
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Linux')) And $(_OSArchitecture) == 'Arm64')" Include="sentry-cli-Linux-aarch64" FileHash="bbb704c491eeb46be92877fcc39a712be53388435d256b7e112f76a4a37de91c" />
122+
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Linux')) And $(_OSArchitecture) == 'X86')" Include="sentry-cli-Linux-i686" FileHash="9aebde0aafc57a598c53c16ebfe0aa57152d948371e69edacccd241d1888166f" />
123+
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Linux')) And $(_OSArchitecture) == 'X64')" Include="sentry-cli-Linux-x86_64" FileHash="f19511e24fda6c44b62da3fd8d5d7193eada4fa885626b275b930b3cd435435b" />
124+
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Windows')) And $(_OSArchitecture) == 'X86')" Include="sentry-cli-Windows-i686.exe" FileHash="239c1435b982b0e36e1c6c1665a9512cce5ddea27c5645012d3ac0abc739cc2f" />
125+
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Windows')) And $(_OSArchitecture) != 'X86')" Include="sentry-cli-Windows-x86_64.exe" FileHash="aeef1303382a528aec0793af1c71f4130f34e3b5b7631a497332f9e5069ba655" />
126126
</ItemGroup>
127127

128128
<!-- Download the files -->

0 commit comments

Comments
 (0)