Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Sentry JavasScript 7.119.0 / Wizard, Exposes Replay feature #354

Merged
merged 15 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,46 @@

## Unreleased

### Features

- Sentry Replay Support ([#354](https://github.com/getsentry/sentry-wizard/pull/354))

How to use:

Replay, profiling and performance monitoring are bundled into Sentry Cordova, all you need to do is to initialise the SDK, include the desired feature and use the sampling filters:

```javascript
/***
* @type {import("sentry-cordova")}
*/
var Sentry = cordova.require("sentry-cordova.Sentry");
Sentry.init({
dsn: YOUR_DSN,
integrations: [
// Replay integration.
Sentry.replayIntegration({
maskAllText: false,
blockAllMedia: true,
}),
// Tracing integration.
Sentry.browserTracingIntegration(),
],
// Replay sampling filters.
replaysSessionSampleRate: 1,
replaysOnErrorSampleRate: 1,

// Tracing sampling filter.
tracesSampleRate: 1,
});
```

### Dependencies

- Bump Sentry JavaScript SDK to `7.119.0` ([#354](https://github.com/getsentry/sentry-cordova/pull/354))
- [changelog](https://github.com/getsentry/sentry-javascript/releases/tag/7.119.0)
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.34.0...7.119.0)
- Bump `sentry-wizard` to 3.32.0 ([#354](https://github.com/getsentry/sentry-wizard/pull/354))

- build(ios): Bump `sentry-cocoa` to 8.36.0 ([#352](https://github.com/getsentry/sentry-cordova/pull/352))
- [changelog](https://github.com/getsentry/sentry-cocoa/releases/tag/8.36.0)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.21.0...8.36.0)
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
],
"description": "Official Sentry SDK for Cordova",
"dependencies": {
"@sentry/browser": "7.34.0",
"@sentry/core": "7.34.0",
"@sentry/hub": "7.34.0",
"@sentry/types": "7.34.0",
"@sentry/utils": "7.34.0",
"@sentry/wizard": "^3.21.0"
"@sentry/browser": "7.119.0",
lucas-zimerman marked this conversation as resolved.
Show resolved Hide resolved
"@sentry/core": "7.119.0",
"@sentry/hub": "7.119.0",
"@sentry/types": "7.119.0",
"@sentry/utils": "7.119.0",
"@sentry/wizard": "^3.32.0"
},
"devDependencies": {
"@sentry-internal/eslint-config-sdk": "7.34.0",
"@sentry-internal/typescript": "7.34.0",
"@sentry-internal/eslint-config-sdk": "7.119.0",
"@sentry-internal/typescript": "7.119.0",
"@types/cordova": "0.0.34",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.5",
Expand Down
7 changes: 4 additions & 3 deletions sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
}
},
"platforms": [
"android",
"browser"
"browser",
"ios",
"android"
],
"plugins_comment": {
"sentry-cordova": {}
Expand All @@ -48,4 +49,4 @@
"cordova": "^12.0.0",
"typescript": "^5.2.2"
}
}
}
20 changes: 20 additions & 0 deletions sample/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,30 @@ document.addEventListener('deviceready', onDeviceReady, false);

function onDeviceReady() {
// Cordova is now initialized. Have fun!
/***
* @type {import("sentry-cordova")}
*/
var Sentry = cordova.require("sentry-cordova.Sentry");
Sentry.init({
dsn: 'https://[email protected]/5627302',
debug: true,
integrations: [
// Replay integration.
Sentry.replayIntegration({
maskAllInputs: false,
blockAllMedia: true
}),
// Tracing integration.
Sentry.browserTracingIntegration(),
],


lucas-zimerman marked this conversation as resolved.
Show resolved Hide resolved
// Replay sampling filters.
replaysSessionSampleRate: 1,
replaysOnErrorSampleRate: 1,

// Tracing sampling filter.
tracesSampleRate: 1,
});

console.log('Running cordova-' + cordova.platformId + '@' + cordova.version);
Expand Down
Loading
Loading