feat: Removed transaction from segment #5531
Annotations
10 errors and 3 notices
Run Unit Tests:
test/unit/transaction.test.js#L1234
Error [ERR_TEST_FAILURE]: '00-c219b28b001e73800ccd658d7579f1b7-25b5a047bb6c448c-01' == '00-c219b28b001e73800ccd658d7579f1b7-2462ab28efb81496-01'
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1213:3) {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: '00-c219b28b001e73800ccd658d7579f1b7-25b5a047bb6c448c-01' == '00-c219b28b001e73800ccd658d7579f1b7-2462ab28efb81496-01'
at /home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1234:14
at /home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:296:12
at AsyncLocalStorage.run (node:async_hooks:338:14)
at AsyncLocalContextManager.runInContext (/home/runner/work/node-newrelic/node-newrelic/lib/context-manager/async-local-context-manager.js:70:38)
at wrapped (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:258:37)
at wrapTransactionInvocation (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:219:50)
at Object.helper.runInTransaction (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:297:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1215:12)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:618:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '00-c219b28b001e73800ccd658d7579f1b7-25b5a047bb6c448c-01',
expected: '00-c219b28b001e73800ccd658d7579f1b7-2462ab28efb81496-01',
operator: '=='
},
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction.test.js#L1602
Error [ERR_TEST_FAILURE]: '00-bba2d4cabae287ff9e5e247a7388febf-200bdd6d75e5bd2a-01' == '00-bba2d4cabae287ff9e5e247a7388febf-8b9d200083829dfd-01'
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1583:3) {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: '00-bba2d4cabae287ff9e5e247a7388febf-200bdd6d75e5bd2a-01' == '00-bba2d4cabae287ff9e5e247a7388febf-8b9d200083829dfd-01'
at /home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1602:14
at /home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:296:12
at AsyncLocalStorage.run (node:async_hooks:338:14)
at AsyncLocalContextManager.runInContext (/home/runner/work/node-newrelic/node-newrelic/lib/context-manager/async-local-context-manager.js:70:38)
at wrapped (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:258:37)
at wrapTransactionInvocation (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:219:50)
at Object.helper.runInTransaction (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:297:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1589:12)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:618:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '00-bba2d4cabae287ff9e5e247a7388febf-200bdd6d75e5bd2a-01',
expected: '00-bba2d4cabae287ff9e5e247a7388febf-8b9d200083829dfd-01',
operator: '=='
},
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction.test.js#L1846
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'distributed_tracing')
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1840:3) {
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'distributed_tracing')
at TraceSegment.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:78:36)
at Tracer.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:75:43)
at Transaction._copyNameToActiveSpan (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:472:41)
at Transaction.finalizeNameFromUri (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:438:8)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1846:9)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1840:3)
at Test.run (node:internal/test_runner/test:632:9),
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction.test.js#L1886
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'distributed_tracing')
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1878:3) {
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'distributed_tracing')
at TraceSegment.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:78:36)
at Tracer.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:75:43)
at Transaction._copyNameToActiveSpan (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:472:41)
at Transaction.finalizeNameFromUri (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:438:8)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1886:11)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1878:3)
at Test.run (node:internal/test_runner/test:632:9),
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction.test.js#L1951
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'distributed_tracing')
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1945:3) {
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'distributed_tracing')
at TraceSegment.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:78:36)
at Tracer.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:75:43)
at Transaction._copyNameToActiveSpan (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:472:41)
at Transaction.finalizeNameFromUri (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:438:8)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1951:9)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1945:3)
at Test.run (node:internal/test_runner/test:632:9),
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction.test.js#L2019
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'distributed_tracing')
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:2015:3) {
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'distributed_tracing')
at TraceSegment.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:78:36)
at Tracer.getSpanContext (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:75:43)
at Transaction._copyNameToActiveSpan (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:472:41)
at Transaction.finalizeName (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/index.js:546:8)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:2019:9)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:2015:3)
at Test.run (node:internal/test_runner/test:632:9),
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction/trace/segment.test.js#L144
Error [ERR_TEST_FAILURE]: 0 == 1
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:135:3) {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: 0 == 1
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:144:12)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:618:21)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:135:3)
at Test.run (node:internal/test_runner/test:632:9)
at startSubtest (node:internal/test_runner/harness:214:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 0,
expected: 1,
operator: '=='
},
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction/trace/index.test.js#L496
Error [ERR_TEST_FAILURE]: agent is not defined
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3) {
failureType: 'testCodeFailure',
cause: ReferenceError [Error]: agent is not defined
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:496:34)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3)
at Test.run (node:internal/test_runner/test:632:9)
at Test.processPendingSubtests (node:internal/test_runner/test:374:7),
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction/trace/index.test.js#L557
Error [ERR_TEST_FAILURE]: agent is not defined
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3) {
failureType: 'testCodeFailure',
cause: ReferenceError [Error]: agent is not defined
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:557:37)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3)
at Test.run (node:internal/test_runner/test:632:9)
at Test.processPendingSubtests (node:internal/test_runner/test:374:7),
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/transaction/trace/index.test.js#L611
Error [ERR_TEST_FAILURE]: agent is not defined
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3) {
failureType: 'testCodeFailure',
cause: ReferenceError [Error]: agent is not defined
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:611:37)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3)
at Test.run (node:internal/test_runner/test:632:9)
at Test.processPendingSubtests (node:internal/test_runner/test:374:7),
code: 'ERR_TEST_FAILURE'
}
|
Run Unit Tests:
test/unit/util/code-level-metrics.test.js#L104
This is testing Express router.route which binds a function thus breaking any function metadata
|
Run Unit Tests:
test/unit/spans/batch-span-streamer.test.js#L199
this will simulate n full batches and the last batch being 1/3 full
|
Run Unit Tests
Total Tests: 4406
Suites 📂: 0
Passed ✅: 4365
Failed ❌: 22
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 19
Duration 🕐: 64467.354ms
|
Loading