Skip to content

Commit ca2d86b

Browse files
committed
Merge branch 'master' into buenaflor/v9-update-snippets
2 parents 7786587 + 9d550cb commit ca2d86b

File tree

30 files changed

+576
-86
lines changed

30 files changed

+576
-86
lines changed

.github/CODEOWNERS

Lines changed: 25 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,41 @@
11
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
22

3+
# See https://github.com/getsentry/sentry-docs/pull/13662 on how commented codeowners are tagged
4+
35
# Requiring review from security team for Content-Security-Policy changes
46
**/vercel.json @getsentry/security
57

68
# Codeowners listed below are used as a reference for the Sentry team to know who to contact for a given area of the codebase.
79

8-
# /src/platforms/android/ @getsentry/team-mobile-core
9-
# /src/wizard/android/ @getsentry/team-mobile-core
10-
# /src/platforms/apple/ @getsentry/team-mobile-core
11-
# /src/wizard/apple/ @getsentry/team-mobile-core
12-
# /src/platforms/dart/guides/flutter/ @getsentry/team-mobile-cross-platform
13-
# /src/wizard/flutter/ @getsentry/team-mobile-cross-platform
14-
# /src/platforms/dart/ @getsentry/team-mobile-cross-platform
15-
# /src/wizard/dart/ @getsentry/team-mobile-cross-platform
16-
# /src/platforms/react-native/ @getsentry/team-mobile-cross-platform
17-
# /src/wizard/react-native/ @getsentry/team-mobile-cross-platform
18-
# /src/platforms/unity/ @getsentry/team-mobile-cross-platform
19-
# /src/wizard/unity/ @getsentry/team-mobile-cross-platform
20-
# /src/wizard/cordova/ @getsentry/team-mobile-cross-platform
21-
22-
# /src/platforms/dotnet/ @getsentry/team-mobile-cross-platform
23-
# /src/wizard/dotnet/ @getsentry/team-mobile-cross-platform
24-
# /src/platforms/java/ @getsentry/team-mobile-core
25-
# /src/wizard/java/ @getsentry/team-mobile-core
26-
27-
# /src/platforms/native/ @getsentry/owners-native
28-
# /src/wizard/native/ @getsentry/owners-native
29-
# /src/wizard/minidump/ @getsentry/owners-native
30-
# /src/platforms/rust/ @getsentry/owners-native
31-
# /src/wizard/rust/ @getsentry/owners-native
32-
33-
# /src/docs/product/discover-queries/ @getsentry/visibility
34-
# /src/docs/product/insights/ @getsentry/insights
35-
36-
# /src/docs/cli/dif.mdx @getsentry/owners-native
10+
# /docs/platforms/android/ @getsentry/team-mobile-core
11+
# /docs/platforms/apple/ @getsentry/team-mobile-core
12+
# /docs/platforms/dart/ @getsentry/team-mobile-cross-platform
13+
# /docs/platforms/react-native/ @getsentry/team-mobile-cross-platform
14+
# /docs/platforms/unity/ @getsentry/team-mobile-cross-platform
15+
# /docs/platforms/javascript/guides/cordova/ @getsentry/team-mobile-cross-platform
16+
17+
# /docs/platforms/dotnet/ @getsentry/team-mobile-cross-platform
18+
# /docs/platforms/java/ @getsentry/team-mobile-core
19+
20+
# /docs/platforms/native/ @getsentry/owners-native
21+
# /docs/platforms/rust/ @getsentry/owners-native
22+
23+
# /docs/product/explore/discover-queries/ @getsentry/visibility
24+
# /docs/product/insights/ @getsentry/insights
25+
26+
# /docs/cli/dif.mdx @getsentry/owners-native
3727

3828
# /.github/labels.yml @getsentry/dev-infra
3929
# /.github/workflows/react-to-product-owners-yml-changes.yml @getsentry/dev-infra
40-
# /bin/react-to-product-owners-yml-changes.py @getsentry/dev-infra
41-
# /bin/react-to-product-owners-yml-changes.sh @getsentry/dev-infra
4230

4331
# ###### Replays #######
4432

45-
# /src/docs/product/session-replay/web @jas-kas @getsentry/replay-sdk-web @getsentry/replay-frontend @getsentry/replay-backend
46-
# /src/docs/product/session-replay/mobile @jas-kas @getsentry/replay-sdk-mobile @getsentry/replay-frontend @getsentry/replay-backend
47-
# /src/includes/session-replay-web-report-bug.mdx @getsentry/replay-sdk-web
48-
# /src/platform-includes/session-replay/ @getsentry/replay-sdk-web @getsentry/replay-sdk-mobile
49-
# /src/platforms/javascript/common/session-replay/ @getsentry/replay-sdk-web
33+
# /docs/product/explore/session-replay/web @jas-kas @getsentry/replay-sdk-web @getsentry/replay-frontend @getsentry/replay-backend
34+
# /docs/product/explore/session-replay/mobile @jas-kas @getsentry/replay-sdk-mobile @getsentry/replay-frontend @getsentry/replay-backend
35+
# /includes/session-replay-web-report-bug.mdx @getsentry/replay-sdk-web
36+
# /platform-includes/session-replay/ @getsentry/replay-sdk-web @getsentry/replay-sdk-mobile
37+
# /docs/platforms/javascript/common/session-replay/ @getsentry/replay-sdk-web
5038

51-
# /src/docs/product/dev-toolbar/ @ryan953 @jas-kas
39+
# /docs/product/sentry-toolbar/ @ryan953 @jas-kas
5240

5341
# ###### End Replays #######

develop-docs/sdk/data-model/event-payloads/contexts.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ GPU context describes the GPU of the device.
436436

437437
Examples: `"Apple Metal"` or `"Direct3D11"`
438438

439+
`driver_version`
440+
441+
: _Optional_. The driver version of the graphics device.
442+
439443
`multi_threaded_rendering`
440444

441445
: _Optional_. Whether the GPU has multi-threaded rendering or not.

develop-docs/sdk/telemetry/logs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The `log` envelope item payload is a JSON object that represents a Sentry Log.
4747
"value": "User %s has logged in!",
4848
"type": "string"
4949
},
50-
"sentry.message.parameters.0": {
50+
"sentry.message.parameter.0": {
5151
"value": "John",
5252
"type": "string"
5353
},

develop-docs/sdk/telemetry/traces/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ This Option replaces the non-standardized `tracingOrigins` option which was prev
7676

7777
This must be a boolean value. Default is `false`. This option controls trace continuation from unknown 3rd party services that happen to be instrumented by a Sentry SDK.
7878

79-
If the SDK is able parse an org ID from the configured DSN, it must be propagated as a baggage entry with the key `sentry-org`. Given a DSN of `https://[email protected]/1`, the org ID is `1`, based on `o1`.
79+
If the SDK is able parse an org ID from the configured DSN, it must be propagated as a baggage entry with the key `sentry-org_id`. Given a DSN of `https://[email protected]/1`, the org ID is `1`, based on `o1`.
8080

81-
Addiotnally, the SDK must be configurable with an optional `org: <org-id>` setting that takes precedence over the parsed value from the DSN. This option should be set when running a self-hosted version of Sentry or if a non-standard Sentry DSN is used, such as when using a local Relay.
81+
Addiotnally, the SDK must be configurable with an optional `orgId: <org-id>` setting that takes precedence over the parsed value from the DSN. This option should be set when running a self-hosted version of Sentry or if a non-standard Sentry DSN is used, such as when using a local Relay.
8282

83-
On incoming traces, the SDK must compare the `sentry-org` baggage value against its own parsed value from the DSN or org setting. Only if both match, the trace is continued. If there is no match, neither the trace ID, the parent sampling decision nor the baggage should be taken into account.
83+
On incoming traces, the SDK must compare the `sentry-org_id` baggage value against its own parsed value from the DSN or org setting. Only if both match, the trace is continued. If there is no match, neither the trace ID, the parent sampling decision nor the baggage should be taken into account.
8484
The SDK should behave like it is the head of trace in this case, and not consider any propagted values.
8585

8686
This behavior can be disabled by setting `strictTraceContinuation: false` in the SDK init call.
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
title: .NET for Android
3+
sdk: sentry.dotnet.android
4+
description: "Learn about Sentry's .NET integration with .NET for Android"
5+
---
6+
7+
Sentry supports [.NET for Android](https://learn.microsoft.com/dotnet/android/getting-started/installation/) directly from the [Sentry NuGet package](https://www.nuget.org/packages/Sentry).
8+
9+
## Overview of the features
10+
11+
- All the features of our main [.NET SDK](/platforms/dotnet), for your managed code
12+
- Attach LogCat logs to events
13+
- Java crash reporting for Android, leveraging our [Android SDK](/platforms/android) including:
14+
- [Capture Application Not Responding (ANR) errors](/platforms/android/configuration/app-not-respond/) when the app is unresponsive
15+
- Automatically [attach screenshots to Java exceptions](/platforms/android/enriching-events/screenshots/)
16+
- Automatic breadcrumbs for Activity lifecycle, App lifecycle, System and Network events and User Interactions
17+
- Automatic [Activity lifecycle tracing](/platforms/android/tracing/instrumentation/automatic-instrumentation/#activity-instrumentation) and [User Interaction tracing](/platforms/android/performance/instrumentation/automatic-instrumentation/#user-interaction-instrumentation)
18+
- Device Root checking
19+
- Native crash reporting for Android, leveraging our [Android NDK](/platforms/android/configuration/using-ndk/)
20+
- Automatic session tracking and [release health](/product/releases/)
21+
- _Session Replay for Android_ (currently experimental)
22+
23+
## Install
24+
25+
Add the Sentry dependency to your .NET for Android application:
26+
27+
```shell {tabTitle:.NET Core CLI}
28+
dotnet add package Sentry -v {{@inject packages.version('sentry.dotnet') }}
29+
```
30+
31+
```powershell {tabTitle:Package Manager}
32+
Install-Package Sentry -Version {{@inject packages.version('sentry.dotnet') }}
33+
```
34+
35+
## Configure
36+
37+
In your `MainActivity.cs` file, call `SentrySdk.Init` in the `OnCreate` event and include any options you would like to set. The `Dsn` is the only required parameter.
38+
39+
40+
```csharp
41+
[Activity(Label = "@string/app_name", MainLauncher = true)]
42+
public class MainActivity : Activity
43+
{
44+
protected override void OnCreate(Bundle? savedInstanceState)
45+
{
46+
SentrySdk.Init(options =>
47+
{
48+
options.Dsn = "___PUBLIC_DSN___";
49+
options.SendDefaultPii = true; // adds the user's IP address automatically
50+
#if DEBUG
51+
// Log debug information about the Sentry SDK
52+
options.Debug = true;
53+
#endif
54+
55+
// Android specific .NET features are under the Android properties:
56+
options.Android.LogCatIntegration = LogCatIntegrationType.Errors; // Get logcat logs for both handled and unhandled errors; default is unhandled only
57+
options.Android.LogCatMaxLines = 1000; // Defaults to 1000
58+
59+
// All the native Android SDK options are available below
60+
// https://docs.sentry.io/platforms/android/configuration/
61+
// Enable Native Android SDK ANR detection
62+
options.Native.AnrEnabled = true;
63+
64+
// Session Replay is currently available via the ExperimentalOptions
65+
options.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 1.0;
66+
options.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 1.0;
67+
options.Native.ExperimentalOptions.SessionReplay.MaskAllImages = false;
68+
options.Native.ExperimentalOptions.SessionReplay.MaskAllText = false;
69+
70+
options.SetBeforeSend(evt =>
71+
{
72+
if (evt.Exception?.Message.Contains("Something you don't care want logged?") ?? false)
73+
{
74+
return null; // return null to filter out event
75+
}
76+
// or add additional data
77+
evt.SetTag("dotnet-Android-Native-Before", "Hello World");
78+
return evt;
79+
});
80+
});
81+
82+
base.OnCreate(savedInstanceState);
83+
}
84+
}
85+
```
86+
87+
### Options
88+
89+
The .NET for Android integration is part of [Sentry](/platforms/dotnet/). Please refer to the documentation for that package for information about platform agnostic options.
90+
91+
Android specific options are described below.
92+
93+
### LogCatIntegration
94+
95+
Can be set to control whether when LogCat logs are attached to events. It can be set to one of the following values:
96+
97+
- `None`: The LogCat integration is disabled.
98+
- `Unhandled`: LogCat logs are attached to events only when the event is unhandled.
99+
- `Errors`: LogCat logs are attached to events with an exception.
100+
- `All`: LogCat logs are attached to all events.
101+
102+
The default is `LogCatIntegrationType.None`
103+
104+
<Alert level="warning">
105+
106+
Use caution when enabling `LogCatIntegrationType.All`, as this may result in a lot of data being sent to Sentry and performance issues if the SDK generates a lot of events.
107+
108+
</Alert>
109+
110+
### LogCatMaxLines
111+
112+
The maximum number of lines to read from LogCat logs.
113+
114+
The default value is 1000.
115+
116+
## Verify
117+
118+
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.
119+
120+
<PlatformContent includePath="getting-started-verify" />
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
title: .NET for iOS, macOS, and Mac Catalyst
3+
sdk: sentry.dotnet.apple
4+
description: "Learn about Sentry's .NET integration with .NET for iOS, macOS, and Mac Catalyst"
5+
---
6+
7+
Sentry supports [.NET for iOS, macOS, and Mac Catalyst](https://learn.microsoft.com/dotnet/ios/) directly from the [Sentry NuGet package](https://www.nuget.org/packages/Sentry).
8+
9+
## Overview of the features
10+
11+
- All the features of our main [.NET SDK](/platforms/dotnet), for your managed code
12+
- Native crash reporting for Apple platforms, leveraging our [Cocoa SDK](/platforms/apple) including:
13+
- Automatically [attach screenshots to Native exceptions](/platforms/apple/guides/ios/configuration/options/#attach-screenshot)
14+
- Detect [App Hangs](/platforms/apple/configuration/app-hangs/)
15+
- [Automatic performance tracing](/platforms/apple/performance/)
16+
- [Automatic breadcrumbs](/platforms/apple/enriching-events/breadcrumbs/#automatic-breadcrumbs)
17+
- [Swizzling](/platforms/apple/configuration/swizzling/)
18+
- Automatic session tracking and [release health](/product/releases/)
19+
20+
## Install
21+
22+
Add the Sentry dependency to your .NET for iOS, macOS, and/or Mac Catalyst application:
23+
24+
```shell {tabTitle:.NET Core CLI}
25+
dotnet add package Sentry -v {{@inject packages.version('sentry.dotnet') }}
26+
```
27+
28+
```powershell {tabTitle:Package Manager}
29+
Install-Package Sentry -Version {{@inject packages.version('sentry.dotnet') }}
30+
```
31+
32+
## Configure
33+
34+
In your `AppDelegate.cs` file, call `SentrySdk.Init` in the `FinishedLaunching` event and include any options you would like to set. The `Dsn` is the only required parameter.
35+
36+
37+
```csharp
38+
[Register("AppDelegate")]
39+
public class AppDelegate : UIApplicationDelegate
40+
{
41+
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
42+
{
43+
// Init the Sentry SDK
44+
SentrySdk.Init(options =>
45+
{
46+
options.Dsn = "___PUBLIC_DSN___";
47+
options.SendDefaultPii = true; // adds the user's IP address automatically
48+
#if DEBUG
49+
// Log debug information about the Sentry SDK
50+
options.Debug = true;
51+
#endif
52+
53+
// All the native iOS SDK options are available below
54+
// https://docs.sentry.io/platforms/apple/guides/ios/configuration/
55+
// Enable Native iOS SDK App Hangs detection
56+
options.Native.EnableAppHangTracking = true;
57+
58+
options.SetBeforeSend(evt =>
59+
{
60+
if (evt.Exception?.Message.Contains("Something you don't care want logged?") ?? false)
61+
{
62+
return null; // return null to filter out event
63+
}
64+
// or add additional data
65+
evt.SetTag("dotnet-iOS-Native-Before", "Hello World");
66+
return evt;
67+
});
68+
69+
options.OnCrashedLastRun = e =>
70+
{
71+
Console.WriteLine(e);
72+
};
73+
});
74+
}
75+
}
76+
```
77+
78+
### Options
79+
80+
The .NET for iOS, macOS, and Mac Catalyst integration is part of [Sentry](/platforms/dotnet/). Please refer to the documentation for that package for information about platform agnostic options.
81+
82+
## Verify
83+
84+
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.
85+
86+
<PlatformContent includePath="getting-started-verify" />

docs/platforms/dotnet/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To capture all errors, even the one during the startup of your application, you
8484
```csharp
8585
SentrySdk.Init(options =>
8686
{
87-
options.Dsn = "https://[email protected]/5428537";
87+
options.Dsn = "___PUBLIC_DSN___";
8888
options.Debug = true;
8989
// Adds request URL and headers, IP and name for users, etc.
9090
options.SendDefaultPii = true;

docs/platforms/javascript/common/configuration/integrations/breadcrumbs.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ notSupported:
66
- javascript.aws-lambda
77
- javascript.azure-functions
88
- javascript.connect
9-
- javascript.electron
109
- javascript.express
1110
- javascript.fastify
1211
- javascript.gcp-functions

0 commit comments

Comments
 (0)