You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tap-snapshots/src-tests-index.spec.ts-TAP.test.js
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,10 @@ exports[`src/tests/index.spec.ts TAP should add tags with a child logger > must
9
9
2016-12-01T06:00:00.000Z 9048989 INFO Message with userId {"level":30,"time":1480572000000,"userId":12,"awsRequestId":"9048989","x-correlation-id":"9048989","msg":"Message with userId"}
10
10
`
11
11
12
+
exports[`src/tests/index.spec.ts TAP should capture xray trace IDs > must match snapshot 1`]=`
13
+
2016-12-01T06:00:00.000Z 431234 INFO Message with trace ID {"level":30,"time":1480572000000,"awsRequestId":"431234","x-correlation-trace-id":"x-1-2e2323r1234r4","x-correlation-id":"431234","msg":"Message with trace ID"}
14
+
`
15
+
12
16
exports[`src/tests/index.spec.ts TAP should log a simple info message > must match snapshot 1`]=`
13
17
2016-12-01T06:00:00.000Z INFO Simple message {"level":30,"time":1480572000000,"msg":"Simple message"}
14
18
`
@@ -28,3 +32,11 @@ exports[`src/tests/index.spec.ts TAP should log an info message with data > must
28
32
exports[`src/tests/index.spec.ts TAP should log an info message with requestId > must match snapshot 1`]=`
29
33
2016-12-01T06:00:00.000Z 12345 INFO Message with request ID {"level":30,"time":1480572000000,"awsRequestId":"12345","x-correlation-id":"12345","msg":"Message with request ID"}
30
34
`
35
+
36
+
exports[`src/tests/index.spec.ts TAP should log correlation headers > must match snapshot 1`]=`
37
+
2016-12-01T06:00:00.000Z 98875 ERROR Message with correlation ids {"level":50,"time":1480572000000,"awsRequestId":"98875","x-correlation-data":"abbb","x-correlation-service":"tyue","x-correlation-id":"98875","msg":"Message with correlation ids"}
38
+
`
39
+
40
+
exports[`src/tests/index.spec.ts TAP should preserve mixins > must match snapshot 1`]=`
41
+
2016-12-01T06:00:00.000Z 431234 INFO Message with mixin line 2 {"level":30,"time":1480572000000,"line":2,"awsRequestId":"431234","x-correlation-id":"431234","msg":"Message with mixin line 2"}
0 commit comments