Skip to content

Commit 0467449

Browse files
committed
Merge branch 'feat/logs' into feat/logs-initial-api
2 parents 97a87f8 + 9eaaa15 commit 0467449

File tree

113 files changed

+719
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+719
-230
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🐞 Bug Report
22
description: Tell us about something that's not working the way we (probably) intend.
3-
labels: ["Platform: .NET", "bug"]
3+
labels: [".NET", "Bug"]
44
body:
55
- type: dropdown
66
id: nuget

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 💡 Feature Request
22
description: Tell us about a problem our SDK could solve but doesn't.
3-
labels: ["Platform: .NET", "enhancement"]
3+
labels: [".NET", "Feature"]
44
body:
55
- type: textarea
66
id: problem
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Blank Issue
2+
description: Blank Issue. Reserved for maintainers.
3+
labels: [".NET"]
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Description
9+
description: Please describe the issue.
10+
validations:
11+
required: true
12+
13+
- type: markdown
14+
attributes:
15+
value: |-
16+
## Thanks 🙏
17+
Check our [triage docs](https://open.sentry.io/triage/) for what to expect next.

.github/actions/environment/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ runs:
6767
with:
6868
dotnet-version: |
6969
8.0.x
70-
9.0.203
70+
9.0.301
7171
7272
- name: Install .NET Workloads
7373
shell: bash
7474
run: |
7575
pwd
7676
dotnet workload install \
77-
wasm-tools wasm-tools-net8 maui-android \
77+
wasm-tools wasm-tools-net8 maui-android android mobile-librarybuilder \
7878
${{ runner.os == 'macOS' && 'maui-ios maui-maccatalyst maui-windows macos' || '' }} \
7979
${{ runner.os == 'Windows' && 'maui-ios maui-maccatalyst maui-windows' || '' }} \
8080
--temp-dir "${{ runner.temp }}" \

.github/workflows/build.yml

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@ jobs:
183183
name: ${{ matrix.target || runner.os }}-verify-test-results
184184
path: "**/*.received.*"
185185

186-
# To save time and disk space, we only create and archive the NuGet packages when we're actually releasing.
187-
188186
- name: Create NuGet Packages
189-
if: env.CI_PUBLISHING_BUILD == 'true'
190187
run: dotnet pack Sentry-CI-Build-${{ matrix.target || runner.os }}.slnf -c Release --no-build --nologo
191188

192189
- name: Archive NuGet Packages
@@ -199,44 +196,24 @@ jobs:
199196
src/**/Release/*.nupkg
200197
src/**/Release/*.snupkg
201198
202-
integration-test:
203-
needs: build
204-
name: Integration test (${{ matrix.container || matrix.os }})
205-
runs-on: ${{ matrix.os }}
206-
container: ${{ matrix.container }}
207-
208-
strategy:
209-
fail-fast: false
210-
matrix:
211-
include:
212-
- os: ubuntu-22.04 # Pin ubuntu to ensure mono is installed
213-
- os: ubuntu-22.04-arm
214-
- os: ubuntu-latest
215-
container: ghcr.io/getsentry/sentry-dotnet-alpine:3.21
216-
- os: macos-15 # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703
217-
- os: windows-latest
218-
- os: windows-11-arm
219-
220-
steps:
221-
- uses: actions/checkout@v4
199+
- name: Sparse checkout
200+
if: env.CI_PUBLISHING_BUILD == 'true'
201+
uses: actions/checkout@v4
222202
with:
223203
# We only check out what is absolutely necessary to reduce a chance of local files impacting
224204
# integration tests, e.g. Directory.Build.props, nuget.config, ...
225205
sparse-checkout: |
226-
Directory.Build.props
227206
integration-test
228207
.github
229208
230209
- name: Fetch NuGet Packages
210+
if: env.CI_PUBLISHING_BUILD == 'true'
231211
uses: actions/download-artifact@v4
232212
with:
233213
name: ${{ github.sha }}
234214
path: src
235215

236-
- name: Setup Environment
237-
uses: ./.github/actions/environment
238-
239-
- name: Test
216+
- name: Integration test
240217
uses: getsentry/github-workflows/sentry-cli/integration-test/@v2
241218
with:
242219
path: integration-test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test/**/*.apk
2727
/tools/
2828
*.log
2929
.sentry-native
30+
**/EnvironmentVariables.g.cs
3031

3132
# Download cache for Cocoa SDK
3233
modules/sentry-cocoa

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@
55
### Features
66

77
- Add experimental support for _Sentry Structured Logging_ via `SentrySdk.Experimental.Logger` ([#4158](https://github.com/getsentry/sentry-dotnet/pull/4158))
8+
- Added non-allocating `ConfigureScope` and `ConfigureScopeAsync` overloads ([#4244](https://github.com/getsentry/sentry-dotnet/pull/4244))
9+
- Add .NET MAUI `AutomationId` element information to breadcrumbs ([#4248](https://github.com/getsentry/sentry-dotnet/pull/4248))
810

911
### Fixes
1012

1113
- The HTTP instrumentation uses the span created for the outgoing request in the sentry-trace header, fixing the parent-child relationship between client and server ([#4264](https://github.com/getsentry/sentry-dotnet/pull/4264))
14+
- InvalidOperationException sending attachments on Android with LLVM enabled ([#4276](https://github.com/getsentry/sentry-dotnet/pull/4276))
1215

1316
### Dependencies
1417

18+
- Bump the version of the .NET SDK that we use from 9.0.203 to 9.0.301 ([#4272](https://github.com/getsentry/sentry-dotnet/pull/4272))
19+
- Note that this also required we bump various Java dependencies (since version 9.0.300 of the Android workload requires newer versions of the these)
20+
- See https://docs.sentry.io/platforms/dotnet/troubleshooting/#detected-package-version-outside-of-dependency-constraint if you see NU1605, NU1608 and/or NU1107 warnings after upgrading
1521
- Bump Native SDK from v0.8.5 to v0.9.0 ([#4260](https://github.com/getsentry/sentry-dotnet/pull/4260))
1622
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#090)
1723
- [diff](https://github.com/getsentry/sentry-native/compare/0.8.5...0.9.0)

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
<DefineConstants>$(DefineConstants);CI_BUILD</DefineConstants>
6868
</PropertyGroup>
6969

70+
<!-- So we know at build time whether the DSN has been provided in an environment variable or not -->
71+
<PropertyGroup Condition=" '$(SENTRY_DSN)' != '' ">
72+
<DefineConstants>$(DefineConstants);SENTRY_DSN_DEFINED_IN_ENV</DefineConstants>
73+
</PropertyGroup>
74+
7075
<ItemGroup>
7176
<PackageReference Include="UnoptimizedAssemblyDetector" Version="0.1.1" PrivateAssets="All" />
7277
<PackageReference Include="Roslynator.Analyzers" Version="4.9.0" PrivateAssets="All" />

Sentry-CI-Build-Linux-arm64.slnf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"src\\Sentry.SourceGenerators\\Sentry.SourceGenerators.csproj",
4848
"src\\Sentry\\Sentry.csproj",
4949
"test\\Sentry.Analyzers.Tests\\Sentry.Analyzers.Tests.csproj",
50-
"test\\Sentry.AspNet.Tests\\Sentry.AspNet.Tests.csproj",
5150
"test\\Sentry.AspNetCore.Grpc.Tests\\Sentry.AspNetCore.Grpc.Tests.csproj",
5251
"test\\Sentry.AspNetCore.Tests\\Sentry.AspNetCore.Tests.csproj",
5352
"test\\Sentry.AspNetCore.TestUtils\\Sentry.AspNetCore.TestUtils.csproj",

0 commit comments

Comments
 (0)