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/telemetry/scopes.mdx
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,57 @@ Data from all three scope types MUST be merged in a specific order before being
52
52
53
53

54
54
55
+
## Scope Methods
56
+
57
+
### Setting Attributes
58
+
59
+
Users MUST be able to attach attributes to any scope using a dedicated method (e.g., `scope.setAttributes()` or `scope.setAttribute()`). These attributes follow the structure defined in the [Span Protocol](/sdk/telemetry/spans/span-protocol/#attribute-object-properties).
60
+
61
+
Attributes are key-value pairs where each value is an object containing:
62
+
63
+
-`type`: The data type (`"string"`, `"integer"`, `"double"`, `"boolean"`, `"string[]"`, `"integer[]"` and `"double[]"`)
64
+
-`value`: The actual attribute value, which MUST match the specified type
65
+
-`unit` (optional): The unit of measurement (e.g., `"ms"`, `"s"`, `"bytes"`, `"count"`, `"percent"`)
66
+
67
+
#### Example Usage
68
+
69
+
```javascript
70
+
Sentry.getGlobalScope().setAttributes({
71
+
"app.feature_flag.enabled":true,
72
+
"app.session_duration": {
73
+
type:"integer",
74
+
value:3600,
75
+
unit:"s"
76
+
}
77
+
});
78
+
```
79
+
80
+
```python
81
+
sentry_sdk.get_global_scope().set_attributes({
82
+
"app.feature_flag.enabled": True,
83
+
"app.session_duration": {
84
+
"type": "integer",
85
+
"value": 3600,
86
+
"unit": "s"
87
+
}
88
+
})
89
+
```
90
+
91
+
#### Method Signature
92
+
93
+
The method SHOULD accept a dictionary/map/object where:
94
+
- Keys are attribute names (strings)
95
+
- Values are attribute objects with `type`, `value`, and optionally `unit` properties
96
+
97
+
#### Behavior
98
+
99
+
- Attributes set on the global scope MUST be applied to all logs
100
+
- Attributes set on the isolation scope MUST be applied to all logs in that execution context
101
+
- Attributes set on the current scope MUST be applied only to the current log
102
+
- When the same attribute key exists in multiple scopes, the more specific scope's value takes precedence (current > isolation > global)
103
+
104
+
See [Span Protocol - Common Attribute Keys](/sdk/telemetry/spans/span-protocol/#common-attribute-keys) for a list of standard attributes and [Sentry Conventions](https://github.com/getsentry/sentry-conventions/) for the complete attribute registry.
105
+
55
106
## Related Documents
56
107
57
108
This document provides a concise summary of the [Hub & Scope Refactoring](/sdk/miscellaneous/hub_and_scope_refactoring/), focusing on implementation details and expected features. The original document remains unchanged, offering additional historical context and migration strategies.
Copy file name to clipboardExpand all lines: docs/organization/integrations/source-code-mgmt/github/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Sentry owner, manager, or admin permissions, and GitHub owner permissions are re
56
56
57
57
The GitHub integration is available for all projects under your Sentry organization. You can connect multiple GitHub organizations to one Sentry organization. Connecting a GitHub organisation to multiple Sentry organisations is supported on Sentry organisations on a Business or Enterprise plans (not supported for GitHub Enterprise Server).
58
58
59
-
While you can install the GitHub integration from [GitHub](https://github.com/apps/sentry-io), we recommend installing it from Sentry for a more streamlined process.
59
+
While you can install the GitHub integration from [GitHub](https://github.com/apps/sentry), we recommend installing it from Sentry for a more streamlined process.
| Can create and remove projects for the organization || ✓\*\*\*| ✓ | ✓ | ✓ |
44
45
| Can edit Global Integrations ||| ✓ | ✓ | ✓ |
45
46
| Can remove repositories ||| ✓ | ✓ | ✓ |
46
47
| Can add, remove, and change Org Members |||| ✓ | ✓ |
@@ -52,9 +53,11 @@ Organization-level roles enable broad access to the entire organization, as desc
52
53
| Can transfer projects to another organization ||||| ✓ |
53
54
| Can remove an organization ||||| ✓ |
54
55
55
-
\*Org Members will only be able to edit [ownership rules](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/action-release/ownership/) for the project.
56
+
\*Only Owners and Billing users can see complete subscription details. Org Members, Admins, and Managers have access to a limited view of the subscription details.
56
57
57
-
\*\*If your organization is on a Business or Enterprise plan, anyone who's part of the org will be able to create a project without having to be a Team Admin. When org members create a project, they'll become the Team Admin for that project by default and have all the permissions of the [Team Admin](#permissions-1) for that project.
58
+
\*\*Org Members will only be able to edit [ownership rules](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/action-release/ownership/) for the project.
59
+
60
+
\*\*\*If your organization is on a Business or Enterprise plan, anyone who's part of the org will be able to create a project without having to be a Team Admin. When org members create a project, they'll become the Team Admin for that project by default and have all the permissions of the [Team Admin](#permissions-1) for that project.
Copy file name to clipboardExpand all lines: docs/platforms/godot/user-feedback/index.mdx
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,57 @@ sidebar_order: 6000
7
7
8
8
Sentry makes it possible to collect user feedback, and optionally associate it with an error event.
9
9
10
+
<Alertlevel="info">
11
+
12
+
The User Feedback feature requires Sentry Godot SDK version `1.1.0` or higher.
13
+
14
+
</Alert>
15
+
16
+
## Using User Feedback UI
17
+
18
+
The Sentry Godot SDK includes a reference User Feedback UI, which you can find in `addons/sentry/user_feedback/`. This folder contains:
19
+
20
+
-`user_feedback_gui.tscn` + script: A complete, ready-to-use user feedback UI scene that automatically scales to different viewport resolutions.
21
+
-`user_feedback_form.tscn` + script: A minimal user feedback form, designed for integration into existing UI.
22
+
-`sentry_theme.tres`: The reference theme file used to customize the looks of user feedback UI.
23
+
24
+
For quick implementation, drag and drop `user_feedback_gui.tscn` from the addon folder to your scene tree under a `CanvasLayer` node and call `show()` to display the feedback form. The form automatically scales to different viewport resolutions and handles its own visibility, hiding when users click "Submit" (sending feedback to Sentry) or "Cancel".
25
+
26
+

27
+
28
+
You can customize which elements are displayed by toggling optional components such as the logo, name input field, and email input field through the inspector properties. `minimum_words` property controls the minimum number of words required in the feedback message.
29
+
30
+
To customize the form's appearance, use the provided reference theme file (`sentry_theme.tres`). You can duplicate this file, and edit it to create custom styling, then assign your theme to the `theme` property in the Inspector for the feedback UI node. It can be used to customize fonts, colors, separation, etc. For more advanced customizations involving layout changes, copy the entire `user_feedback/` folder into your project and modify the scenes and scripts as needed.
31
+
32
+
<Alertlevel="success"title="Tip">
33
+
34
+
Add `user_feedback_form.tscn` as a preview while editing the theme file to see your changes in real-time.
35
+
36
+
</Alert>
37
+
38
+
### Integrating the Form Into Existing UI
39
+
40
+
For custom UI integration, use `user_feedback_form.tscn` instead. This component scene provides a flexible panel that can be embedded into other UI controls. Unlike the standalone GUI, you'll need to manage its visibility manually. The form exposes two signals for handling user interactions: `feedback_submitted` (triggered when feedback is sent) and `feedback_cancelled` (triggered when the user cancels the operation). After you instantiate the form inside your UI scene, you can use the provided signals to hide the form when it's no longer needed (or perform some other action):
41
+
42
+
```GDScript
43
+
# Assuming you have already added the form to your scene with "UserFeedbackForm" unique name.
44
+
@onready var user_feedback_form = %UserFeedbackForm
45
+
46
+
func _ready():
47
+
user_feedback_form.feedback_submitted.connect(
48
+
func(_feedback: SentryFeedback) -> void:
49
+
user_feedback_form.hide()
50
+
print("User feedback submitted.")
51
+
)
52
+
user_feedback_form.feedback_cancelled.connect(
53
+
func() -> void:
54
+
user_feedback_form.hide()
55
+
print("User feedback cancelled.")
56
+
)
57
+
```
58
+
59
+
To customize the form's appearance, use the provided reference theme file (`sentry_theme.tres`), which can be duplicated to create a custom UI style. Simply assign your customized theme to the form's `theme` property in the Inspector to apply your styling changes.
60
+
10
61
## User Feedback API
11
62
12
63
The User Feedback API allows you to collect user feedback while using your own UI controls. You can submit feedback directly by creating an instance of `SentryFeedback` class, setting the required `message` and optional fields, then submitting it using `SentrySDK.capture_feedback(feedback)`.
Copy file name to clipboardExpand all lines: docs/platforms/python/tracing/instrumentation/custom-instrumentation/caches-module.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: "Learn how to manually instrument your code to use Sentry's Caches
5
5
---
6
6
A cache can be used to speed up data retrieval, thereby improving application performance. Because instead of getting data from a potentially slow data layer, your application will be getting data from memory (in a best case scenario). Caching can speed up read-heavy workloads for applications like Q&A portals, gaming, media sharing, and social networking.
7
7
8
-
Sentry offers a [cache-monitoring dashboard](https://sentry.io/orgredirect/organizations/:orgslug/insights/backend/caches/) that can be auto-instrumented for popular Python caching setups (like <PlatformLinkto="/integrations/django/">Django</PlatformLink>, <PlatformLinkto="/integrations/redis/">Redis</PlatformLink>, and memcached (coming soon)).
8
+
Sentry offers a [cache-monitoring dashboard](https://sentry.io/orgredirect/organizations/:orgslug/insights/backend/caches/) that can be auto-instrumented for popular Python caching setups (like <PlatformLinkto="/integrations/django/">Django</PlatformLink> and <PlatformLinkto="/integrations/redis/">Redis</PlatformLink>).
9
9
10
10
If you're using a custom caching solution that doesn't have auto instrumentation, you can manually instrument it and use Sentry to get a look into how your caching solution is performing by following the setup instructions below.
11
11
@@ -17,7 +17,7 @@ For detailed information about which data can be set, see the [Cache Module Deve
17
17
18
18
## Manual Instrumentation
19
19
20
-
If you're using anything other than <PlatformLinkto="/integrations/django/">Django</PlatformLink>, <PlatformLinkto="/integrations/redis/">Redis</PlatformLink>, memcached (coming soon), you'll need to manually instrument the [Cache Module](https://sentry.io/orgredirect/organizations/:orgslug/insights/backend/caches/) by following the steps below.
20
+
If you're using anything other than <PlatformLinkto="/integrations/django/">Django</PlatformLink> or <PlatformLinkto="/integrations/redis/">Redis</PlatformLink>, you'll need to manually instrument the [Cache Module](https://sentry.io/orgredirect/organizations/:orgslug/insights/backend/caches/) by following the steps below.
0 commit comments