You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop-docs/sdk/data-model/event-payloads/contexts.mdx
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ related to the current user and the environment. For example, the device or
8
8
application version. Its canonical name is `contexts`.
9
9
10
10
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
12
12
context and can be freely chosen. However, as per policy, it should match the
13
13
type of the context unless there are two values for a type. You can omit `type`
14
14
if the key name is the type.
@@ -273,7 +273,7 @@ To summarize:
273
273
274
274
: _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)`).
275
275
276
-
### Example OS Context
276
+
**Example OS Context**
277
277
278
278
The OS Context for the 3 major OSs should look like this:
279
279
@@ -468,7 +468,7 @@ Examples: `"Apple Metal"` or `"Direct3D11"`
468
468
469
469
: _Optional_. Are geometry shaders available on the device?
470
470
471
-
### Example GPU Context
471
+
**Example GPU Context**
472
472
473
473
```json
474
474
{
@@ -496,7 +496,7 @@ The `type` and default key is `"state"`.
496
496
497
497
: **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.
498
498
499
-
### Example State Context
499
+
**Example State Context**
500
500
501
501
```json
502
502
{
@@ -598,7 +598,7 @@ The `type` and default key is `"cloud_resource"`.
598
598
599
599
- Example: `t4g.medium`
600
600
601
-
### Example Cloud Resource Context
601
+
**Example Cloud Resource Context**
602
602
603
603
The following example illustrates the contexts part of the <Linkto="/sdk/data-model/event-payloads/">event payload</Link> and omits other attributes for simplicity.
604
604
@@ -720,7 +720,7 @@ The `route` currently supports the following predefined fields if it's a map:
720
720
721
721
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.
722
722
723
-
### Example Trace Context
723
+
**Example Trace Context**
724
724
725
725
```json
726
726
{
@@ -766,7 +766,7 @@ envelope endpoint.
766
766
767
767
: **Required**. The replay_id associated with the event.
768
768
769
-
### Example Replay Context
769
+
**Example Replay Context**
770
770
771
771
```json
772
772
{
@@ -792,7 +792,7 @@ This is mostly set on transactions in a web server environment where one transac
792
792
793
793
- Example: `200`
794
794
795
-
### Example Response Context
795
+
**Example Response Context**
796
796
797
797
```json
798
798
{
@@ -822,7 +822,7 @@ The required field is `package` which should contain the package or framework wh
822
822
823
823
- Example: `true`
824
824
825
-
### Example Response Context
825
+
**Example Response Context**
826
826
827
827
```json
828
828
{
@@ -852,7 +852,7 @@ The feature flag context contains information about the flags evaluated prior to
0 commit comments