Skip to content

Commit 3cf4883

Browse files
authored
Merge pull request #82 from datalust/dev
Update of dependencies and support for traceId and spanId
2 parents bf783de + 0cbcadf commit 3cf4883

File tree

6 files changed

+242
-2951
lines changed

6 files changed

+242
-2951
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
### Requiring for Node
66

77
```js
8-
let seq = require('seq-logging');
8+
const seq = require('seq-logging');
99
```
1010

1111
### Requiring for a browser
1212

1313
Using `seq-logging` in a browser context is the same, except the module to import is `seq-logging/browser`.
1414

1515
```js
16-
let seq = require('seq-logging/browser');
16+
const seq = require('seq-logging/browser');
1717
```
1818

1919
### Usage
@@ -22,10 +22,10 @@ A `Logger` is configured with `serverUrl`, and optionally `apiKey` as well as ev
2222
`requestTimeout` can be used to adjust timeout for stalled connections, default: 30s.
2323

2424
```js
25-
let process = require('process');
26-
let seq = require('seq-logging');
25+
const process = require('process');
26+
const seq = require('seq-logging');
2727

28-
let logger = new seq.Logger({ serverUrl: 'http://localhost:5341' });
28+
const logger = new seq.Logger({ serverUrl: 'http://localhost:5341' });
2929

3030
logger.emit({
3131
timestamp: new Date(),

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export interface RemoteConfig {
2020
export interface SeqEvent {
2121
timestamp: Date
2222
level?: string
23+
traceId?: string
24+
spanId?: string
2325
messageTemplate?: string
2426
properties?: object
2527
exception?: string

0 commit comments

Comments
 (0)