Skip to content

Commit 8cdeff8

Browse files
combmagbenvinegar
authored andcommitted
chore(typings): Updated typings to add the stacktrace option (#746)
1 parent 3aaa6a2 commit 8cdeff8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

typescript/raven-tests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ var err:Error = Raven.lastException();
5454

5555
Raven.captureMessage('Broken!');
5656
Raven.captureMessage('Broken!', {tags: { key: "value" }});
57+
+Raven.captureMessage('Broken!', { stacktrace: true });
5758
Raven.captureBreadcrumb({});
5859

5960
Raven.setRelease('abc123');

typescript/raven.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ interface RavenOptions {
3939
[id: string]: string;
4040
};
4141

42+
/** set to true to get the strack trace of your message */
43+
stacktrace?: boolean;
44+
4245
extra?: any;
4346

4447
/** In some cases you may see issues where Sentry groups multiple events together when they should be separate entities. In other cases, Sentry simply doesn’t group events together because they’re so sporadic that they never look the same. */

0 commit comments

Comments
 (0)