Skip to content

Commit e218dd3

Browse files
committed
Update docs
1 parent ad9a437 commit e218dd3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/index.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ These are functions you can call in your javascript code:
195195
Sentry.config("___DSN___", {
196196
deactivateStacktraceMerging: true, // default: false | Deactivates the stacktrace merging feature
197197
logLevel: SentryLog.Debug, // default SentryLog.None | Possible values: .None, .Error, .Debug, .Verbose
198-
forceRavenClient: true // default false | This will force sentry to use the raven client instead the native client
199198
// These two options will only be considered if stacktrace merging is active
200199
// Here you can add modules that should be ignored or exclude modules
201200
// that should no longer be ignored from stacktrace merging
@@ -234,5 +233,20 @@ These are functions you can call in your javascript code:
234233
level: SentrySeverity.Warning
235234
}); // Default SentrySeverity.Error
236235

236+
// capture an exception
237+
Sentry.captureException(new Error('Oops!'), {
238+
logger: 'my.module'
239+
});
240+
241+
// capture an exception
242+
Sentry.captureBreadcrumb({
243+
message: 'Item added to shopping cart',
244+
category: 'action',
245+
data: {
246+
isbn: '978-1617290541',
247+
cartSize: '3'
248+
}
249+
});
250+
237251
// This will trigger a crash in the native sentry client
238252
//Sentry.nativeCrash();

0 commit comments

Comments
 (0)