datalust / seq-logging

A Node.js client for the Seq HTTP ingestion API
Apache License 2.0
25 stars 15 forks source link

Add traceid spanid #81

Closed liammclennan closed 7 months ago

liammclennan commented 7 months ago

Add traceId and spanId

function makeTestEvent() {
    return {
        level: 'Error',
        timestamp: new Date(),
        traceId: '6112be4ab9f113c499dbf4817e503a69',
        spanId: '2f2b39a596fc76cd',
        messageTemplate: 'Event produced by integration test',
        exception: 'Some error at some file on some line',
        properties: { testMarker: uuid.v4() }
    };
}