Remove tx from segment #5530
Annotations
10 errors and 3 notices
Run Unit Tests:
test/unit/transaction.test.js#L1234
Error [ERR_TEST_FAILURE]: '00-b7491817ee1179184633caac00f98a34-6df3791983142995-01' == '00-b7491817ee1179184633caac00f98a34-a7ae59ccf80cb2cd-01'
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1213:3) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: '00-b7491817ee1179184633caac00f98a34-6df3791983142995-01' == '00-b7491817ee1179184633caac00f98a34-a7ae59ccf80cb2cd-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:346: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:259:37)
at wrapTransactionInvocation (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:220: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:206:9)
at Test.run (node:internal/test_runner/test:776:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '00-b7491817ee1179184633caac00f98a34-6df3791983142995-01',
expected: '00-b7491817ee1179184633caac00f98a34-a7ae59ccf80cb2cd-01',
operator: '=='
}
}
|
Run Unit Tests:
test/unit/transaction.test.js#L1602
Error [ERR_TEST_FAILURE]: '00-3a6f465b83da9fe31a03e4357bb446e8-c8226eb0f4b678fc-01' == '00-3a6f465b83da9fe31a03e4357bb446e8-7e8073e278d6b336-01'
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction.test.js:1583:3) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: '00-3a6f465b83da9fe31a03e4357bb446e8-c8226eb0f4b678fc-01' == '00-3a6f465b83da9fe31a03e4357bb446e8-7e8073e278d6b336-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:346: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:259:37)
at wrapTransactionInvocation (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/tracer/index.js:220: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:206:9)
at Test.run (node:internal/test_runner/test:776:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '00-3a6f465b83da9fe31a03e4357bb446e8-c8226eb0f4b678fc-01',
expected: '00-3a6f465b83da9fe31a03e4357bb446e8-7e8073e278d6b336-01',
operator: '=='
}
}
|
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) {
code: 'ERR_TEST_FAILURE',
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:206:9)
at Test.run (node:internal/test_runner/test:789: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:790:9)
}
|
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) {
code: 'ERR_TEST_FAILURE',
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:206:9)
at Test.run (node:internal/test_runner/test:789: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:790:9)
}
|
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) {
code: 'ERR_TEST_FAILURE',
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:206:9)
at Test.run (node:internal/test_runner/test:789: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:790:9)
}
|
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) {
code: 'ERR_TEST_FAILURE',
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:206:9)
at Test.run (node:internal/test_runner/test:789: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:790:9)
}
|
Run Unit Tests:
test/unit/transaction/trace/segment.test.js#L31
Error [ERR_TEST_FAILURE]: null == <ref *4> Transaction {
_intrinsicAttributes: [Object: null prototype] {},
_partialName: null,
_recorders: [],
_traceId: null,
acceptedDistributedTrace: null,
agent: <ref *2> Agent {
[Symbol(kCapture)]: false,
[Symbol(shapeMode)]: false,
__created: Error: Only one agent at a time! This one was created at:
at Object.loadMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:106:22)
at TestContext.beforeEach (/home/runner/work/node-newreli...
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:31:3) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: null == <ref *4> Transaction {
_intrinsicAttributes: [Object: null prototype] {},
_partialName: null,
_recorders: [],
_traceId: null,
acceptedDistributedTrace: null,
agent: <ref *2> Agent {
[Symbol(kCapture)]: false,
[Symbol(shapeMode)]: false,
__created: Error: Only one agent at a time! This one was created at:
at Object.loadMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:106:22)
at TestContext.beforeEach (/home/runner/work/node-newreli...
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:44:12)
at Test.runInAsyncScope (node:async_hooks:206:9)
at Test.run (node:internal/test_runner/test:789:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:31:3)
at Test.run (node:internal/test_runner/test:790:9)
at Test.processPendingSubtests (node:internal/test_runner/test:517:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: null,
expected: [Transaction],
operator: '=='
}
}
|
Run Unit Tests:
test/unit/transaction/trace/segment.test.js#L127
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe')
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:123:3) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe')
at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:125:20)
at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:127:21)
at Test.runInAsyncScope (node:async_hooks:206:9)
at Test.run (node:internal/test_runner/test:776:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:123:3)
at Test.run (node:internal/test_runner/test:790:9)
at Test.processPendingSubtests (node:internal/test_runner/test:517:7)
}
|
Run Unit Tests:
test/unit/transaction/trace/segment.test.js#L190
Error [ERR_TEST_FAILURE]: 0 == 1
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:183:3) {
code: 'ERR_TEST_FAILURE',
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:190:12)
at Test.runInAsyncScope (node:async_hooks:206:9)
at Test.run (node:internal/test_runner/test:776:21)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:183:3)
at Test.run (node:internal/test_runner/test:790:9)
at Test.processPendingSubtests (node:internal/test_runner/test:517:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 0,
expected: 1,
operator: '=='
}
}
|
Run Unit Tests:
test/unit/transaction/trace/segment.test.js#L248
Error [ERR_TEST_FAILURE]: Expected values to be loosely deep-equal:
[
3,
17,
'DB/select/getSome',
[Object: null prototype] {},
[]
]
should loosely deep-equal
[
3,
17,
'DB/select/getSome',
{
nr_exclusive_duration_millis: 14
},
[]
]
at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:235:3) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal:
[
3,
17,
'DB/select/getSome',
[Object: null prototype] {},
[]
]
should loosely deep-equal
[
3,
17,
'DB/select/getSome',
{
nr_exclusive_duration_millis: 14
},
[]
]
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:248:12)
at Test.runInAsyncScope (node:async_hooks:206:9)
at Test.run (node:internal/test_runner/test:789:25)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/segment.test.js:235:3)
at Test.run (node:internal/test_runner/test:790:9)
at Test.processPendingSubtests (node:internal/test_runner/test:517:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: [ 3, 17, 'DB/select/getSome', {}, [] ],
expected: [ 3, 17, 'DB/select/getSome', [Object], [] ],
operator: 'deepEqual'
}
}
|
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: 4399
Suites 📂: 0
Passed ✅: 4341
Failed ❌: 36
Canceled 🚫: 0
Skipped ⏭️: 3
Todo 📝: 19
Duration 🕐: 63730.048ms
|
Loading