Skip to content

Commit e2b8d69

Browse files
committed
Merge branch 'master' of github.com:getsentry/sentry-docs into smi/quick-start/react-manual-tracing
2 parents 907a125 + 7c6ba74 commit e2b8d69

File tree

31 files changed

+1673
-508
lines changed

31 files changed

+1673
-508
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ related to the current user and the environment. For example, the device or
88
application version. Its canonical name is `contexts`.
99

1010
The `contexts` type can be used to define arbitrary contextual data on the
11-
event. It accepts an object of key/value pairs. The key is the alias of the
11+
event. It accepts an object of key/value pairs. The key is the "alias" of the
1212
context and can be freely chosen. However, as per policy, it should match the
1313
type of the context unless there are two values for a type. You can omit `type`
1414
if the key name is the type.
@@ -273,7 +273,7 @@ To summarize:
273273

274274
: _Optional_. Typically provides the full name, full version, and release alias. This maps to `PRETTY_NAME` in [`/etc/os-release`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html#PRETTY_NAME=) (examples: `Ubuntu 22.04.4 LTS`, `Raspian GNU/Linux 10 (buster)`).
275275

276-
### Example OS Context
276+
**Example OS Context**
277277

278278
The OS Context for the 3 major OSs should look like this:
279279

@@ -468,7 +468,7 @@ Examples: `"Apple Metal"` or `"Direct3D11"`
468468

469469
: _Optional_. Are geometry shaders available on the device?
470470

471-
### Example GPU Context
471+
**Example GPU Context**
472472

473473
```json
474474
{
@@ -496,7 +496,7 @@ The `type` and default key is `"state"`.
496496

497497
: **Required**. Object with two keys: _Optional_ `type` for naming the state library (e.g.: Redux, MobX, Vuex) and **Required** `value` that holds the state object.
498498

499-
### Example State Context
499+
**Example State Context**
500500

501501
```json
502502
{
@@ -598,7 +598,7 @@ The `type` and default key is `"cloud_resource"`.
598598

599599
- Example: `t4g.medium`
600600

601-
### Example Cloud Resource Context
601+
**Example Cloud Resource Context**
602602

603603
The following example illustrates the contexts part of the <Link to="/sdk/data-model/event-payloads/">event payload</Link> and omits other attributes for simplicity.
604604

@@ -720,7 +720,7 @@ The `route` currently supports the following predefined fields if it's a map:
720720

721721
If the route is set to a string (e.g. `"route": "foo"`), it will be normalized into a map (e.g. `"route": {"name": "foo"}`) server-side.
722722

723-
### Example Trace Context
723+
**Example Trace Context**
724724

725725
```json
726726
{
@@ -766,7 +766,7 @@ envelope endpoint.
766766

767767
: **Required**. The replay_id associated with the event.
768768

769-
### Example Replay Context
769+
**Example Replay Context**
770770

771771
```json
772772
{
@@ -792,7 +792,7 @@ This is mostly set on transactions in a web server environment where one transac
792792

793793
- Example: `200`
794794

795-
### Example Response Context
795+
**Example Response Context**
796796

797797
```json
798798
{
@@ -822,7 +822,7 @@ The required field is `package` which should contain the package or framework wh
822822

823823
- Example: `true`
824824

825-
### Example Response Context
825+
**Example Response Context**
826826

827827
```json
828828
{
@@ -852,7 +852,7 @@ The feature flag context contains information about the flags evaluated prior to
852852
- Example: `false`
853853

854854

855-
### Example Feature Flag Context
855+
**Example Feature Flag Context**
856856

857857
```json
858858
{

docs/platforms/android/tracing/instrumentation/perf-v2.mdx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,41 @@ sidebar_order: 11
44
description: "Learn how to get even more insights into Android app performance"
55
---
66

7-
<Alert>
7+
Performance V2 contains a set of features that enrich performance instrumentation. It tightly integrates with the [Mobile Vitals](/product/insights/mobile/mobile-vitals/) Insights module, enabling <PlatformLink to="/tracing/instrumentation/perf-v2/#app-start">App Start</PlatformLink> and <PlatformLink to="/tracing/instrumentation/perf-v2/#frames-delay">Frames Delay</PlatformLink> reporting.
88

9-
This feature is marked as _experimental_.
10-
Supported in Sentry's Android SDK version `7.4.0` and above.
11-
12-
</Alert>
13-
14-
Performance V2 is a set of features which enrich your existing instrumentation, giving you more insights into potential performance bottlenecks. These features tightly integrate with the [Mobile Vitals](/product/insights/mobile/mobile-vitals/) insights module.
9+
Since version 8 of the SDK, Performance V2 is generally available and enabled by default. In versions `7.4.0..<8.0.0`, this feature is available as _experimental_ and you need to opt in to use it:
1510

1611
### Enabling Performance V2
1712

18-
```java {filename:MyApplication.java}
13+
```java {filename:MyApplication.java} {4}
1914
import io.sentry.android.core.SentryAndroid;
2015

2116
SentryAndroid.init(this, options -> {
2217
options.setEnablePerformanceV2(true);
2318
});
2419
```
2520

26-
```kotlin {filename:MyApplication.kt}
21+
```kotlin {filename:MyApplication.kt} {4}
2722
import io.sentry.android.core.SentryAndroid
2823

2924
SentryAndroid.init(this) { options ->
3025
options.enablePerformanceV2 = true
3126
}
3227
```
3328

34-
```xml {filename:AndroidManifest.xml}
29+
```xml {filename:AndroidManifest.xml} {3-5}
3530
<manifest>
3631
<application>
37-
<meta-data android:name="io.sentry.performance-v2.enable" android:value="true" />
32+
<meta-data
33+
android:name="io.sentry.performance-v2.enable"
34+
android:value="true" />
3835
</application>
3936
</manifest>
4037
```
4138

4239
### App Start
4340

44-
Besides enabling performance-v2, this feature requires the <PlatformLink to="/configuration/gradle/">Sentry Android Gradle Plugin</PlatformLink> (version `4.2.0` or above) to be applied to your app module.
41+
Besides enabling Performance V2, this feature requires the <PlatformLink to="/configuration/gradle/">Sentry Android Gradle Plugin</PlatformLink> (version `4.2.0` or above) to be applied to your app module.
4542

4643
Once enabled, your App Start transaction will show a detailed span breakdown of various components:
4744
* `process.load`: The process initialization time

docs/platforms/java/common/source-context/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Next, calculate the derived file path. Take the frame `module` and replace all `
2020

2121
Finally, compare the derived with the path found in your source repository. In this example, the `com/example/vu/android/` folder may match the `src/com/example/vu/android/` folder in the source code. Using that information, set the **Stack Trace Root** to `com/example/vu/android/` and the **Source Code Root** to `src/com/example/vu/android/`. This tells Sentry to replace all file paths beginning in `com/example/vu/android/` with `src/com/example/vu/android/` when searching for the source code.
2222

23-
Because Sentry will use the first matching code mapping, it is recommended to always provide a non-empty value for the **Stack Trace Root** when possible. An empty value in the **Stack Trace Root** will match all file paths, which will work poorly if multiple code mapprings are required.
23+
Because Sentry will use the first matching code mapping, it is recommended to always provide a non-empty value for the **Stack Trace Root** when possible. An empty value in the **Stack Trace Root** will match all file paths, which will work poorly if multiple code mappings are required.

0 commit comments

Comments
 (0)