Skip to content

Commit

Permalink
Hide local scopes from Android, show Kotlin
Browse files Browse the repository at this point in the history
Local scopes are not supported on Android, but the documentation for them still shows up anyways. Conversely, information about the Kotlin extensions is missing, but many Android apps make heavy use of Kotlin and Coroutines, so this section should be displayed.
  • Loading branch information
designedbyz authored Feb 19, 2022
1 parent 9b4a4c8 commit bdb056f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platforms/common/enriching-events/scopes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ You can also apply this configuration when unsetting a user at logout:
To learn what useful information can be associated with scopes see
[the context documentation](../context/).

<PlatformSection supported={["java"]} notSupported={["android"]}>

## Local Scopes

We also support pushing and configuring a scope within a single call. This is typically
Expand All @@ -107,7 +109,7 @@ Any exceptions that occur within the callback function for `with-scope` will not
caught and all errors that occur will be silently ignored and *not* repoted.
</Alert>

<PlatformSection supported={["java"]} notSupported={["android"]}>
</PlatformSection>

## Kotlin Coroutines

Expand Down Expand Up @@ -146,4 +148,3 @@ launch(SentryContext()) {
}
}
```
</PlatformSection>

0 comments on commit bdb056f

Please sign in to comment.