lib: add metrics support for http2 #660
Annotations
3 errors and 1 notice
Test:
test/parallel/test-diagnostics-channel-http2.js#L1
--- stderr ---
node:diagnostics_channel:153
triggerUncaughtException(err, false);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
false !== true
at /Users/runner/work/nsolid/nsolid/test/parallel/test-diagnostics-channel-http2.js:60:10
at /Users/runner/work/nsolid/nsolid/test/common/index.js:501:15
at Channel.publish (node:diagnostics_channel:150:9)
at ServerHttp2Stream._destroy (node:internal/http2/core:2459:36)
at _destroy (node:internal/streams/destroy:122:10)
at ServerHttp2Stream.destroy (node:internal/streams/destroy:84:5)
at Writable.destroy (node:internal/streams/writable:1122:11)
at node:internal/http2/core:1225:46
at Map.forEach (<anonymous>)
at closeSession (node:internal/http2/core:1225:19) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: 'strictEqual'
}
Node.js v22.13.1
Command: out/Release/nsolid --expose-internals --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /Users/runner/work/nsolid/nsolid/test/parallel/test-diagnostics-channel-http2.js
|
Test:
test/agents/test-grpc-heap-profile.mjs#L1
--- stderr ---
(node:34455) 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": "untitled application",
"blockedLoopThreshold": 200,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:64205",
"hostname": "Mac-1739212154468.local",
"iisNode": false,
"interval": 3000,
"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": "untitled application"
},
{
"op": "add",
"path": "/blockedLoopThreshold",
"value": 200
},
{
"op": "add",
"path": "/disablePackageScan",
"value": false
},
{
"op": "add",
"path": "/env",
"value": "prod"
},
{
"op": "add",
"path": "/grpc",
"value": "localhost:64205"
},
{
"op": "add",
"path": "/hostname",
"value": "Mac-1739212154468.local"
},
{
"op": "add",
"path": "/iisNode",
"value": false
},
{
"op": "add",
"path": "/interval",
"value": 3000
},
{
"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:64205. Insecure: 1
Resetting command stream
Old Config:
{
"app": "untitled application",
"blockedLoopThreshold": 200,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:64205",
"hostname": "Mac-1739212154468.local",
"iisNode": false,
"interval": 3000,
"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": "untitled application",
"blockedLoopThreshold": 200,
"disablePackageScan": false,
"env": "prod",
"grpc": "localhost:64205",
"hostname": "Mac-1739212154468.local",
"iisNode": false,
"interval": 3000,
"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:
[]
Command Received: requestId: "6a52c905-0bb6-45ec-899e-d9c8e32beb00"
id: "2429cdfe3ae766001b8b408be2eac80038cf1470"
command: "heap_profile"
args {
profile {
duration: 100
metadata {
fields {
key: "a"
value {
string_value: "x"
}
}
}
heap_profile {
}
}
}
got_profile. len: 65536, status: 0. thread_id: 0. req_id: 6a52c905-0bb6-45ec-899e-d9c8e32beb00
got_profile. len: 65536, status: 0. thread_id: 0. req_id: 6a52c905-0bb6-45ec-899e-d9c8e32beb00
got_profile. len: 65536, status: 0. thread_id: 0. req_id: 6a52c9
|
Test
Process completed with exit code 2.
|
Post Set up sccache
0% - 0 hits, 0 misses, 0 errors
|
Loading