agents,lib,src,test: add traceSampleRate support #1071
Annotations
4 errors and 1 notice
|
test-macOS
Process completed with exit code 2.
|
|
test-macOS:
test/agents/test-zmq-tracing.mjs#L0
--- stderr ---
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'agent-metrics'
- 'agent-tracing'
^
at file:///Users/runner/work/nsolid/nsolid/node/test/agents/test-zmq-tracing.mjs:429:16
at /Users/runner/work/nsolid/nsolid/node/test/common/index.js:486:15
at TestPlayground.detectInitialSequence (/Users/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/index.js:403:13)
at ZmqAgentBus.<anonymous> (/Users/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/index.js:305:14)
at ZmqAgentBus.emit (node:events:508:28)
at ZmqAgentBus._handleMessage (/Users/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/zmqagentbus.js:331:12)
at exports.Socket.emit (node:events:508:28)
at Socket._emitMessage (/Users/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/node_modules/zeromq/lib/index.js:647:10)
at Socket._flushRead (/Users/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/node_modules/zeromq/lib/index.js:660:10)
at Socket._flushReads (/Users/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/node_modules/zeromq/lib/index.js:696:15) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'agent-metrics',
expected: 'agent-tracing',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v24.13.0
--- stdout ---
[local] tracing generation should work for http transactions
[0] agent-connected, a30621dc18a14300c9239ee7bf3d4b0005f6bd87
[1] agent-metrics, a30621dc18a14300c9239ee7bf3d4b0005f6bd87
[1] agent-info, a30621dc18a14300c9239ee7bf3d4b0005f6bd87
[2] agent-packages, a30621dc18a14300c9239ee7bf3d4b0005f6bd87
[3] agent-metrics, a30621dc18a14300c9239ee7bf3d4b0005f6bd87
[4] agent-tracing, a30621dc18a14300c9239ee7bf3d4b0005f6bd87
agent-tracing, a30621dc18a14300c9239ee7bf3d4b0005f6bd87
{
agentId: 'a30621dc18a14300c9239ee7bf3d4b0005f6bd87',
app: 'myapp',
requestId: null,
command: 'tracing',
recorded: { seconds: 1772558179, nanoseconds: 674569000 },
duration: 0,
interval: 5000,
version: 4,
body: {
spans: [
{
id: '95858f17df965bc5',
parentId: 'f455d7859189116c',
traceId: 'cbe1cbe6bbed9238767061a1703b2248',
start: 1772558179628.8096,
end: 1772558179630.4734,
kind: 1,
type: 8,
name: 'HTTP GET',
threadId: 0,
status: { message: '', code: 0 },
attributes: {
'http.method': 'GET',
'http.status_code': 200,
'http.status_text': 'OK',
'http.url': 'http://127.0.0.1:49473/',
'network.protocol.version': '1.1'
},
events: []
},
{
id: 'f455d7859189116c',
parentId: '0000000000000000',
traceId: 'cbe1cbe6bbed9238767061a1703b2248',
start: 1772558179624.6218,
end: 1772558179631.376,
kind: 2,
type: 4,
name: 'HTTP GET',
threadId: 0,
status: { message: '', code: 0 },
attributes: {
'http.method': 'GET',
'http.status_code': 200,
'http.status_text': 'OK',
'http.url': 'http://127.0.0.1:49473/',
'network.protocol.version': '1.1'
},
events: []
}
]
},
time: 1772558179675,
timeNS: '1772558179674569000'
}
child process exited with code 0 and signal null
[local] tracing generation should work for http transactions immediately on startup
[0] agent-connected, c6e92da465f177002082a7f4e09ec200388059b8
[1] agent-metrics, c6e92da465f177002082a7f4e09ec200388059b8
[1] agent-info, c6e92da465f177002082a7f4e09ec200388059b8
[2] agent-packages, c6e92da465f177002082a7f4e09ec200388059b8
[3] agent-metrics, c6e92da465f177002082a7f4e09ec200388059b8
[4] agent-tracing, c6e92da465f177002082a7f4e09ec200388059b8
agent-tracing, c6e92da465f177002082a7f4e09ec200388059b8
{
agentId: 'c6e92da465f177002082a7f4e09ec200388059b8',
app: 'myapp',
requestId: null,
command: 'tracing',
recorded:
|
|
test-macOS:
test/agents/test-grpc-heap-sampling.mjs#L0
--- stderr ---
(node:29124) DeprecationWarning: Calling start() is no longer necessary. It can be safely omitted.
(Use `nsolid --trace-deprecation ...` to show where the warning was created)
Using default certs
Old Config:
{}
NewConfig:
{
"app": "nsolid-grpc-agent",
"appVersion": "1.0.0",
"assetsEnabled": true,
"blockedLoopThreshold": 200,
"contCpuProfile": false,
"contCpuProfileInterval": 30000,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:64637",
"hostname": "sjc20-cw714-96c04577-cfee-4da0-965f-2e08044ee459-96503FBB9954.local",
"iisNode": false,
"interval": 5000,
"pauseMetrics": false,
"promiseTracking": false,
"pubkey": "^kvy<i^qI<r{=ZDrfK4K<#NtqY+zaH:ksm/YGE6I",
"statsdBucket": "nsolid.${env}.${app}.${hostname}.${shortId}",
"tags": [],
"traceSampleRate": 1,
"tracingEnabled": false,
"tracingModulesBlacklist": 0,
"trackGlobalPackages": false
}
Diff:
[
{
"op": "add",
"path": "/app",
"value": "nsolid-grpc-agent"
},
{
"op": "add",
"path": "/appVersion",
"value": "1.0.0"
},
{
"op": "add",
"path": "/assetsEnabled",
"value": true
},
{
"op": "add",
"path": "/blockedLoopThreshold",
"value": 200
},
{
"op": "add",
"path": "/contCpuProfile",
"value": false
},
{
"op": "add",
"path": "/contCpuProfileInterval",
"value": 30000
},
{
"op": "add",
"path": "/disablePackageScan",
"value": false
},
{
"op": "add",
"path": "/env",
"value": "prod"
},
{
"op": "add",
"path": "/grpc",
"value": "localhost:64637"
},
{
"op": "add",
"path": "/hostname",
"value": "sjc20-cw714-96c04577-cfee-4da0-965f-2e08044ee459-96503FBB9954.local"
},
{
"op": "add",
"path": "/iisNode",
"value": false
},
{
"op": "add",
"path": "/interval",
"value": 5000
},
{
"op": "add",
"path": "/pauseMetrics",
"value": false
},
{
"op": "add",
"path": "/promiseTracking",
"value": false
},
{
"op": "add",
"path": "/pubkey",
"value": "^kvy<i^qI<r{=ZDrfK4K<#NtqY+zaH:ksm/YGE6I"
},
{
"op": "add",
"path": "/statsdBucket",
"value": "nsolid.${env}.${app}.${hostname}.${shortId}"
},
{
"op": "add",
"path": "/tags",
"value": []
},
{
"op": "add",
"path": "/traceSampleRate",
"value": 1
},
{
"op": "add",
"path": "/tracingEnabled",
"value": false
},
{
"op": "add",
"path": "/tracingModulesBlacklist",
"value": 0
},
{
"op": "add",
"path": "/trackGlobalPackages",
"value": false
}
]
GrpcAgent configured. Endpoint: localhost:64637. Insecure: 1
Resetting command stream
Old Config:
{
"app": "nsolid-grpc-agent",
"appVersion": "1.0.0",
"assetsEnabled": true,
"blockedLoopThreshold": 200,
"contCpuProfile": false,
"contCpuProfileInterval": 30000,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:64637",
"hostname": "sjc20-cw714-96c04577-cfee-4da0-965f-2e08044ee459-96503FBB9954.local",
"iisNode": false,
"interval": 5000,
"pauseMetrics": false,
"promiseTracking": false,
"pubkey": "^kvy<i^qI<r{=ZDrfK4K<#NtqY+zaH:ksm/YGE6I",
"statsdBucket": "nsolid.${env}.${app}.${hostname}.${shortId}",
"tags": [],
"traceSampleRate": 1,
"tracingEnabled": false,
"tracingModulesBlacklist": 0,
"trackGlobalPackages": false
}
NewConfig:
{
"app": "nsolid-grpc-agent",
"appVersion": "1.0.0",
"assetsEnabled": true,
"blockedLoopThreshold": 200,
"contCpuProfile": false,
"contCpuProfileInterval": 30000,
"disablePackageScan": false,
"env": "prod",
"grp
|
|
test-macOS:
test/parallel/test-nsolid-snapshot.js#L86
--- stderr ---
node:assert:849
throw newErr;
^
AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Heap snapshot could not be generated
at /Users/runner/work/nsolid/nsolid/node/test/common/index.js:449:12
at /Users/runner/work/nsolid/nsolid/node/test/common/index.js:486:15
at node:internal/nsolid_assets:364:30
at process.processTicksAndRejections (node:internal/process/task_queues:84:11)
at Object.snapshot (node:internal/nsolid_assets:359:13)
at start.snapshot (node:nsolid:568:14)
at Immediate.<anonymous> (/Users/runner/work/nsolid/nsolid/node/test/parallel/test-nsolid-snapshot.js:86:16)
at process.processImmediate (node:internal/timers:506:21) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: Error [-57]: Heap snapshot could not be generated
at Object.snapshot (node:internal/nsolid_assets:359:13)
at start.snapshot (node:nsolid:568:14)
at Immediate.<anonymous> (/Users/runner/work/nsolid/nsolid/node/test/parallel/test-nsolid-snapshot.js:86:16)
at process.processImmediate (node:internal/timers:506:21) {
code: -57
},
expected: null,
operator: 'ifError',
diff: 'simple'
}
Node.js v24.13.0
Command: out/Release/nsolid /Users/runner/work/nsolid/nsolid/node/test/parallel/test-nsolid-snapshot.js
|
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|