Improve metrics performance and reliability #1184
Annotations
5 errors
|
|
|
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:///home/runner/work/nsolid/nsolid/node/test/agents/test-zmq-tracing.mjs:405:14
at /home/runner/work/nsolid/nsolid/node/test/common/index.js:489:15
at TestPlayground.detectInitialSequence (/home/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/index.js:403:13)
at ZmqAgentBus.<anonymous> (/home/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/index.js:305:14)
at ZmqAgentBus.emit (node:events:509:28)
at ZmqAgentBus._handleMessage (/home/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/zmqagentbus.js:331:12)
at exports.Socket.emit (node:events:509:28)
at Socket._emitMessage (/home/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/node_modules/zeromq/lib/index.js:647:10)
at Socket._flushRead (/home/runner/work/nsolid/nsolid/node/test/common/nsolid-zmq-agent/node_modules/zeromq/lib/index.js:660:10)
at Socket._flushReads (/home/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.15.0
--- stdout ---
[local] tracing generation should work for http transactions
[0] agent-connected, 1c8b8c0f89e01c006a99ba82af228400ef7fec9b
[1] agent-metrics, 1c8b8c0f89e01c006a99ba82af228400ef7fec9b
[1] agent-info, 1c8b8c0f89e01c006a99ba82af228400ef7fec9b
[2] agent-packages, 1c8b8c0f89e01c006a99ba82af228400ef7fec9b
[3] agent-metrics, 1c8b8c0f89e01c006a99ba82af228400ef7fec9b
[4] agent-tracing, 1c8b8c0f89e01c006a99ba82af228400ef7fec9b
agent-tracing, 1c8b8c0f89e01c006a99ba82af228400ef7fec9b
{
agentId: '1c8b8c0f89e01c006a99ba82af228400ef7fec9b',
app: 'myapp',
requestId: null,
command: 'tracing',
recorded: { seconds: 1777976488, nanoseconds: 344856020 },
duration: 0,
interval: 5000,
version: 4,
body: {
spans: [
{
id: '7740a72c147b70f1',
parentId: '3500b73266741d9c',
traceId: 'a7377f1a2dd66d4d716dfa6253956988',
start: 1777976488261.5908,
end: 1777976488263.3374,
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:46753/',
'network.protocol.version': '1.1'
},
events: []
},
{
id: '3500b73266741d9c',
parentId: '0000000000000000',
traceId: 'a7377f1a2dd66d4d716dfa6253956988',
start: 1777976488256.0886,
end: 1777976488265.0938,
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:46753/',
'network.protocol.version': '1.1'
},
events: []
}
]
},
time: 1777976488345,
timeNS: '1777976488344856020'
}
child process exited with code 0 and signal null
[local] tracing generation should work for http transactions immediately on startup
[0] agent-connected, 48753a569f366a0037e82a03b3eccc0099bd6302
[1] agent-metrics, 48753a569f366a0037e82a03b3eccc0099bd6302
[1] agent-info, 48753a569f366a0037e82a03b3eccc0099bd6302
[2] agent-packages, 48753a569f366a0037e82a03b3eccc0099bd6302
[3] agent-metrics, 48753a569f366a0037e82a03b3eccc0099bd6302
[4] agent-tracing, 48753a569f366a0037e82a03b3eccc0099bd6302
agent-tracing, 48753a569f366a0037e82a03b3eccc0099bd6302
{
agentId: '48753a569f366a0037e82a03b3eccc0099bd6302',
app: 'myapp',
requestId: null,
command: 'tracing',
recorded: { seco
|
|
test/agents/test-grpc-metrics-retry.mjs#L0
--- stderr ---
(node:247889) DeprecationWarning: Calling start() is no longer necessary. It can be safely omitted.
(Use `nsolid --trace-deprecation ...` to show where the warning was created)
(node:247917) DeprecationWarning: Calling start() is no longer necessary. It can be safely omitted.
(Use `nsolid --trace-deprecation ...` to show where the warning was created)
--- stdout ---
Running GrpcMetricsExporter retry test...
message { type: 'port', port: 36995 }
GRPC server started on port 36995
message {
type: 'command',
data: { agentId: 'f574894fb8dd160052f6962c5ca48e0093e0b4b6' }
}
Metrics received
Metadata {
internalRepr: Map(3) {
'user-agent' => [ 'grpc-c++/1.76.0 grpc-c/51.0.0 (linux; chttp2)' ],
'nsolid-agent-id' => [ 'f574894fb8dd160052f6962c5ca48e0093e0b4b6' ],
'nsolid-saas' => [ '' ]
},
opaqueData: Map(0) {},
options: {}
}
message {
type: 'metrics',
data: {
request: { resourceMetrics: [Array] },
metadata: {
'user-agent': [Array],
'nsolid-agent-id': [Array],
'nsolid-saas': [Array]
}
}
}
Received OTLP metrics export #1
Checking process metrics (20 metrics)
Process metric uptime: 1 datapoints (expected: 1)
Process metric systemUptime: 1 datapoints (expected: 1)
Process metric freeMem: 1 datapoints (expected: 1)
Process metric blockInputOpCount: 1 datapoints (expected: 1)
Process metric blockOutputOpCount: 1 datapoints (expected: 1)
Process metric ctxSwitchInvoluntaryCount: 1 datapoints (expected: 1)
Process metric ctxSwitchVoluntaryCount: 1 datapoints (expected: 1)
Process metric ipcReceivedCount: 1 datapoints (expected: 1)
Process metric ipcSentCount: 1 datapoints (expected: 1)
Process metric pageFaultHardCount: 1 datapoints (expected: 1)
Process metric pageFaultSoftCount: 1 datapoints (expected: 1)
Process metric signalCount: 1 datapoints (expected: 1)
Process metric swapCount: 1 datapoints (expected: 1)
Process metric rss: 1 datapoints (expected: 1)
Process metric load1m: 1 datapoints (expected: 1)
Process metric load5m: 1 datapoints (expected: 1)
Process metric load15m: 1 datapoints (expected: 1)
Process metric cpuUserPercent: 1 datapoints (expected: 1)
Process metric cpuSystemPercent: 1 datapoints (expected: 1)
Process metric cpuPercent: 1 datapoints (expected: 1)
Metrics received
Metadata {
internalRepr: Map(3) {
'user-agent' => [ 'grpc-c++/1.76.0 grpc-c/51.0.0 (linux; chttp2)' ],
'nsolid-agent-id' => [ 'f574894fb8dd160052f6962c5ca48e0093e0b4b6' ],
'nsolid-saas' => [ '' ]
},
opaqueData: Map(0) {},
options: {}
}
message {
type: 'metrics',
data: {
request: { resourceMetrics: [Array] },
metadata: {
'user-agent': [Array],
'nsolid-agent-id': [Array],
'nsolid-saas': [Array]
}
}
}
Received OTLP metrics export #2
Checking thread metrics (56 metrics)
Thread metric activeHandles: 1 datapoints (expected: 1)
Thread metric activeRequests: 1 datapoints (expected: 1)
Thread metric heapTotal: 1 datapoints (expected: 1)
Thread metric totalHeapSizeExecutable: 1 datapoints (expected: 1)
Thread metric totalPhysicalSize: 1 datapoints (expected: 1)
Thread metric totalAvailableSize: 1 datapoints (expected: 1)
Thread metric heapUsed: 1 datapoints (expected: 1)
Thread metric heapSizeLimit: 1 datapoints (expected: 1)
Thread metric mallocedMemory: 1 datapoints (expected: 1)
Thread metric externalMem: 1 datapoints (expected: 1)
Thread metric peakMallocedMemory: 1 datapoints (expected: 1)
Thread metric numberOfNativeContexts: 1 datapoints (expected: 1)
Thread metric numberOfDetachedContexts: 1 datapoints (expected: 1)
Thread metric gcCount: 1 datapoints (expected: 1)
Thread metric gcForcedCount: 1 datapoints (expected: 1)
Thread metric gcFullCount: 1 datapoints (expected: 1)
Thread metric gcMajorCount: 1 datapoints (expected: 1)
Thread metric dnsCount: 1 datapoints (expected: 1)
Thread metric httpClientAbortCount: 1 datapoints (expected: 1)
Thread metric httpClientCount: 1 datapoints (expected: 1)
Thread metric httpServerAbortCount: 1 datapoints (expected: 1)
Thread metric httpServerCount: 1 datapoints (expected: 1)
Thread me
|
|
test/agents/test-grpc-continuous-profile.mjs#L0
--- stderr ---
(node:240292) 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": true,
"contCpuProfileInterval": 100,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:33137",
"hostname": "runnervm6gd1v",
"iisNode": false,
"interval": 5000,
"metricsBatchSize": 1,
"metricsBufferSize": 100,
"pauseMetrics": false,
"promiseTracking": false,
"pubkey": "^kvy<i^qI<r{=ZDrfK4K<#NtqY+zaH:ksm/YGE6I",
"statsdBucket": "nsolid.${env}.${app}.${hostname}.${shortId}",
"tags": [],
"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": true
},
{
"op": "add",
"path": "/contCpuProfileInterval",
"value": 100
},
{
"op": "add",
"path": "/disablePackageScan",
"value": false
},
{
"op": "add",
"path": "/env",
"value": "prod"
},
{
"op": "add",
"path": "/grpc",
"value": "localhost:33137"
},
{
"op": "add",
"path": "/hostname",
"value": "runnervm6gd1v"
},
{
"op": "add",
"path": "/iisNode",
"value": false
},
{
"op": "add",
"path": "/interval",
"value": 5000
},
{
"op": "add",
"path": "/metricsBatchSize",
"value": 1
},
{
"op": "add",
"path": "/metricsBufferSize",
"value": 100
},
{
"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": "/tracingEnabled",
"value": false
},
{
"op": "add",
"path": "/tracingModulesBlacklist",
"value": 0
},
{
"op": "add",
"path": "/trackGlobalPackages",
"value": false
}
]
GrpcAgent configured. Endpoint: localhost:33137. Insecure: 1
Resetting command stream
Old Config:
{
"app": "nsolid-grpc-agent",
"appVersion": "1.0.0",
"assetsEnabled": true,
"blockedLoopThreshold": 200,
"contCpuProfile": true,
"contCpuProfileInterval": 100,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:33137",
"hostname": "runnervm6gd1v",
"iisNode": false,
"interval": 5000,
"metricsBatchSize": 1,
"metricsBufferSize": 100,
"pauseMetrics": false,
"promiseTracking": false,
"pubkey": "^kvy<i^qI<r{=ZDrfK4K<#NtqY+zaH:ksm/YGE6I",
"statsdBucket": "nsolid.${env}.${app}.${hostname}.${shortId}",
"tags": [],
"tracingEnabled": false,
"tracingModulesBlacklist": 0,
"trackGlobalPackages": false
}
NewConfig:
{
"app": "nsolid-grpc-agent",
"appVersion": "1.0.0",
"assetsEnabled": true,
"blockedLoopThreshold": 200,
"contCpuProfile": true,
"contCpuProfileInterval": 100,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:33
|
|
test/parallel/test-nsolid-snapshot.js#L0
--- stderr ---
Assertion failed in ../agents/zmq/src/zmq_agent.cc on line 2205: `iter.second != false` (0 != 0)
Command: out/Release/nsolid /home/runner/work/nsolid/nsolid/node/test/parallel/test-nsolid-snapshot.js
--- CRASHED (Signal: 6) ---
|
The logs for this run have expired and are no longer available.
Loading