Skip to content

Commit

Permalink
Update README.md (#739)
Browse files Browse the repository at this point in the history
* Update README.md

Update readme with V1 information

* Update README.md
  • Loading branch information
lucas-zimerman authored Sep 23, 2024
1 parent 1f5657c commit d3f1076
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,22 @@ _Bad software is everywhere, and we're tired of it. Sentry is on a mission to he
## Installation

```bash
# Angular 12 and newer:
yarn add @sentry/capacitor @sentry/angular-ivy --exact

# Angular 10 and 11:
# Angular 14 and newer:
yarn add @sentry/capacitor @sentry/angular --exact

# Vue
yarn add @sentry/capacitor @sentry/vue --exact

# React
yarn add @sentry/capacitor @sentry/react --exact

# Other
yarn add @sentry/capacitor @sentry/browser --exact
```

Older versions of Angular require @sentry/capacitor V0, for more information check the page: https://docs.sentry.io/platforms/javascript/guides/capacitor/#angular-version-compatibility


## Usage

To use this SDK, call `Sentry.init` as early as possible after loading the page. This will initialize the SDK and hook into the environment. _Note that you can turn off almost all side effects using the respective options._
Expand Down Expand Up @@ -52,7 +61,7 @@ To set context information or send manual events, use the exported functions of
import * as Sentry from '@sentry/capacitor';

// Set user information, as well as tags and further extras
Sentry.configureScope(scope => {
const scope = Sentry.getCurrentScope();
scope.setExtra('battery', 0.7);
scope.setTag('user_mode', 'admin');
scope.setUser({ id: '4711' });
Expand Down

0 comments on commit d3f1076

Please sign in to comment.