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 8
8
"author" : " Exceptionless" ,
9
9
"license" : " Apache-2.0" ,
10
10
"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 "
13
13
},
14
14
"publishConfig" : {
15
15
"access" : " restricted"
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ import { Exceptionless } from "@exceptionless/browser";
51
51
await Exceptionless .startup (c => {
52
52
c .apiKey = " API_KEY_HERE" ;
53
53
c .setUserIdentity (" 12345678" , " Blake" );
54
+ c .useSessions ();
54
55
55
56
// set some default data
56
57
c .defaultData [" mydata" ] = {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ JavaScript environments.
5
5
6
6
## Getting Started
7
7
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 +.
9
9
10
10
## Installation
11
11
@@ -22,14 +22,13 @@ import { Exceptionless } from "@exceptionless/node";
22
22
23
23
await Exceptionless .startup (c => {
24
24
c .apiKey = " API_KEY_HERE" ;
25
- c .setUserIdentity (" 12345678" , " Blake" );
26
25
27
26
// set some default data
28
27
c .defaultData [" mydata" ] = {
29
28
myGreeting: " Hello World"
30
29
};
31
30
32
- c .defaultTags .push (" Example" , " JavaScript" , " Node" );
31
+ c .defaultTags .push (" Example" , " JavaScript" , " Node" );
33
32
});
34
33
```
35
34
@@ -43,6 +42,15 @@ await Exceptionless.submitLog("Hello world!");
43
42
Please see the [ docs] ( https://exceptionless.com/docs/clients/javascript/ ) for
44
43
more information on configuring the client.
45
44
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
+
46
54
## Support
47
55
48
56
If you need help, please contact us via in-app support,
You can’t perform that action at this time.
0 commit comments