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
* feat(scopes): Add scopes and SentrySDK.with_scope() on Android
* Update CHANGELOG.md
* Style and checks
* Update class docs with Android support
* Clarify sentinel value via code
* Explain propagation context in combined scopes
* Fix null handling in capture_feedback()
* Add scope attribute type tests for metrics+logs
* Add workaround for scope.clear() leaving contexts
* Better scope.clear() tests
* Remove null checks after static cast
* Align scope parameter position in bridge
Copy file name to clipboardExpand all lines: CHANGELOG.md
+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
@@ -4,9 +4,9 @@
4
4
5
5
### Features
6
6
7
-
- Add current scope support to the GDScript API to enrich the telemetry captured within a specific part of the code ([#834](https://github.com/getsentry/sentry-godot/pull/834))
7
+
- Add current scope support to the GDScript API to enrich the telemetry captured within a specific part of the code ([#834](https://github.com/getsentry/sentry-godot/pull/834), [#835](https://github.com/getsentry/sentry-godot/pull/835))
8
8
-`SentrySDK.with_scope()` runs a callable with a forked scope, `SentrySDK.get_current_scope()` returns the scope active on the calling thread, and the new `SentryScope` class carries tags, contexts, user, level, fingerprint, breadcrumbs, and attributes on top of the data set globally
9
-
- Only supported on Windowsand Linux for now, with the remaining platforms still capturing telemetry but discarding the scope data and printing a warning
9
+
- Only supported on Windows, Linux, and Android for now, with the remaining platforms still capturing telemetry but discarding the scope data and printing a warning
Copy file name to clipboardExpand all lines: doc_classes/SentrySDK.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@
77
77
<description>
78
78
Returns the current scope on the calling thread. Inside a [method SentrySDK.with_scope] callable, this is the scope forked for that callable. The fork is discarded when the callable returns, and the parent scope it was forked from becomes current again. Outside of any [method SentrySDK.with_scope], the returned scope stays current for the telemetry captured later on that thread.
79
79
The returned scope belongs to the calling thread. Data written to it enriches only the telemetry captured on that thread, and modifying it from another thread is not supported. See [SentryScope] for details. To enrich telemetry captured on every thread, use the [SentrySDK] methods such as [method SentrySDK.set_tag] instead.
80
-
[b]Note:[/b] The SDK supports scopes on Windowsand Linux only for now. On the other platforms it still captures telemetry, but discards the data written to the returned scope.
80
+
[b]Note:[/b] The SDK supports scopes on Windows, Linux, and Android only for now. On the other platforms it still captures telemetry, but discards the data written to the returned scope.
Writes made through [SentrySDK] methods such as [method SentrySDK.set_tag] still apply globally, even when called inside the callable.
210
210
For more information, see [SentryScope] class.
211
211
[b]Note:[/b] The fork covers the synchronous part of [param callable] only. If the callable awaits, the fork is discarded at the first [code]await[/code] and a warning is printed.
212
-
[b]Note:[/b] The SDK supports scopes on Windowsand Linux only for now. On the other platforms it still captures telemetry, but discards the data written to the forked scope and prints a warning.
212
+
[b]Note:[/b] The SDK supports scopes on Windows, Linux, and Android only for now. On the other platforms it still captures telemetry, but discards the data written to the forked scope and prints a warning.
Copy file name to clipboardExpand all lines: doc_classes/SentryScope.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
)
15
15
[/codeblock]
16
16
[b]Note:[/b] A scope is thread-local. Modify a scope only from the thread that created it. If a scope is modified from another thread, the SDK rejects the call with an error and discards the data. To enrich telemetry captured on another thread, get that thread's current scope with [method SentrySDK.get_current_scope], or use [SentrySDK] methods such as [method SentrySDK.set_tag] to enrich telemetry captured on all threads.
17
-
[b]Note:[/b] The SDK supports scopes on Windowsand Linux only for now. On the other platforms it still captures telemetry, but discards the data written to the scope.
17
+
[b]Note:[/b] The SDK supports scopes on Windows, Linux, and Android only for now. On the other platforms it still captures telemetry, but discards the data written to the scope.
0 commit comments