File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 88 "author" : " Exceptionless" ,
99 "license" : " Apache-2.0" ,
1010 "scripts" : {
11- "dev" : " nodemon app.js" ,
12- "start" : " node app.js"
11+ "dev" : " nodemon app.js --enable-source-maps " ,
12+ "start" : " node app.js --enable-source-maps "
1313 },
1414 "publishConfig" : {
1515 "access" : " restricted"
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ import { Exceptionless } from "@exceptionless/browser";
5151await Exceptionless .startup (c => {
5252 c .apiKey = " API_KEY_HERE" ;
5353 c .setUserIdentity (" 12345678" , " Blake" );
54+ c .useSessions ();
5455
5556 // set some default data
5657 c .defaultData [" mydata" ] = {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ JavaScript environments.
55
66## Getting Started
77
8- To use this package, your must be using ES6 and Node 15 +.
8+ To use this package, your must be using ES6 and Node 18 +.
99
1010## Installation
1111
@@ -22,14 +22,13 @@ import { Exceptionless } from "@exceptionless/node";
2222
2323await Exceptionless .startup (c => {
2424 c .apiKey = " API_KEY_HERE" ;
25- c .setUserIdentity (" 12345678" , " Blake" );
2625
2726 // set some default data
2827 c .defaultData [" mydata" ] = {
2928 myGreeting: " Hello World"
3029 };
3130
32- c .defaultTags .push (" Example" , " JavaScript" , " Node" );
31+ c .defaultTags .push (" Example" , " JavaScript" , " Node" );
3332});
3433```
3534
@@ -43,6 +42,15 @@ await Exceptionless.submitLog("Hello world!");
4342Please see the [ docs] ( https://exceptionless.com/docs/clients/javascript/ ) for
4443more information on configuring the client.
4544
45+ ### Source Maps
46+
47+ For improved stack traces launch your Node app with the
48+ [ ` --enable-source-maps ` command line option] ( https://nodejs.org/docs/latest-v18.x/api/cli.html#--enable-source-maps ) .
49+
50+ ``` sh
51+ node app.js --enable-source-maps
52+ ```
53+
4654## Support
4755
4856If you need help, please contact us via in-app support,
You can’t perform that action at this time.
0 commit comments