elastic / apm-nodejs-http-client

**Moved to elastic/apm-agent-nodejs.** A low-level Node.js HTTP client for communicating with the Elastic APM intake API
MIT License
21 stars 30 forks source link

Add logs to CentralConfig 3xx and 4xx responses. #182

Closed linjunpop closed 1 year ago

linjunpop commented 2 years ago

So the client will have logs on why Central Config fails.

cla-checker-service[bot] commented 2 years ago

💚 CLA has been signed

apmmachine commented 2 years ago

:grey_exclamation: Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS Pipeline View Test View Changes Artifacts preview

Expand to view the summary

#### Build stats * Start Time: 2022-10-21T02:03:39.180+0000 * Duration: 4 min 0 sec

Steps errors 2

Expand to view the steps failures

##### `Load a resource file from a library`

  • Took 0 min 0 sec . View more details here
  • Description: approval-list/elastic/apm-nodejs-http-client.yml
##### `Error signal`
  • Took 0 min 0 sec . View more details here
  • Description: githubApiCall: The REST API call https://api.github.com/orgs/elastic/members/linjunpop return the message : java.lang.Exception: httpRequest: Failure connecting to the service https://api.github.com/orgs/elastic/members/linjunpop : httpRequest: Failure connecting to the service https://api.github.com/orgs/elastic/members/linjunpop : Code: 404Error: {"message":"User does not exist or is not a member of the organization","documentation_url":"https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user"}

:robot: GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with: - `run` `elasticsearch-ci/docs` : Re-trigger the docs validation. (use unformatted text in the comment!)

astorm commented 2 years ago

Thanks for the PR @linjunpop! It looks like the continuous integration system isn't happy about something. You should be able to run this locally via npm

$ npm run test

and then make any changes necessary to fix tests and/or make the linter happy.

Once the tests are green we'll give this one a review.

linjunpop commented 2 years ago

Running npm test locally:

Test result ```bash ➜ apm-nodejs-http-client (patch-1) ✔ npm run test > elastic-apm-http-client@11.0.1 test > standard && nyc ./test/run_tests.sh # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/abort.test.js' TAP version 13 # abort request if server responds early ok 1 should make a POST request ok 2 should send request to /intake/v2/events ok 3 should add secret token ok 4 should send reqeust as ndjson ok 5 should compress request ok 6 should expect json in response ok 7 should add proper User-Agent ok 8 should generate request-error with 500 status code ok 9 should generate request-error with expected body ok 10 should make a POST request ok 11 should send request to /intake/v2/events ok 12 should add secret token ok 13 should send reqeust as ndjson ok 14 should compress request ok 15 should expect json in response ok 16 should add proper User-Agent ok 17 should be equivalent ok 18 should be truthy ok 19 should be truthy ok 20 should be truthy ok 21 should be equal ok 22 should be equal ok 23 should be equal ok 24 should be truthy ok 25 should be equal ok 26 should be equal ok 27 should be equal ok 28 pid should be > 0, was 32867 ok 29 ppid should be > 0, was 32866 ok 30 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 31 process.title should be an array ok 32 process.title should contain at least two elements ok 33 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 34 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/abort.test.js)" ok 35 string ok 36 should be truthy ok 37 string ok 38 should be truthy ok 39 string ok 40 should be truthy ok 41 should be equivalent 1..41 # tests 41 # pass 41 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/apm-server-version.test.js' TAP version 13 # no APM server version fetch if apmServerVersion is given ok 1 made it to timeout with no APM server request # APM server version fetch works for "6.6.0" ok 2 client._apmServerVersion is undefined immediately after client creation ok 3 client.supportsKeepingUnsampledTransaction() defaults to true before fetch ok 4 should be equal ok 5 got APM Server information API request ok 6 client._apmServerVersion is set ok 7 should be equal ok 8 client.supportsKeepingUnsampledTransaction() is true after fetch # APM server version fetch works for "7.16.0" ok 9 client._apmServerVersion is undefined immediately after client creation ok 10 client.supportsKeepingUnsampledTransaction() defaults to true before fetch ok 11 should be equal ok 12 got APM Server information API request ok 13 client._apmServerVersion is set ok 14 should be equal ok 15 client.supportsKeepingUnsampledTransaction() is true after fetch # APM server version fetch works for "8.0.0" ok 16 client._apmServerVersion is undefined immediately after client creation ok 17 client.supportsKeepingUnsampledTransaction() defaults to true before fetch ok 18 should be equal ok 19 got APM Server information API request ok 20 client._apmServerVersion is set ok 21 should be equal ok 22 client.supportsKeepingUnsampledTransaction() is false after fetch # APM server version is null on fetch error ok 23 got a "request-error" event ok 24 error message is about APM Server version fetching ok 25 client._apmServerVersion ok 26 client.supportsKeepingUnsampledTransaction() defaults to true after failed fetch 1..26 # tests 26 # pass 26 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/backoff-delay.test.js' TAP version 13 # _getBackoffDelay ok 1 no backoff delay with no errors ok 2 delay=0 after one error ok 3 delay ~ 1000ms after one error, got 945.2195851448838 ok 4 delay ~ 4000ms after two errors, got 4091.2060656154513 ok 5 delay ~ 9000ms after three errors, got 8157.199861512138 ok 6 delay ~ 16000ms after four errors, got 15835.347711845992 ok 7 delay ~ 25000ms after five errors, got 23337.840028298135 ok 8 delay ~ 36000ms after six errors, got 37050.67833992334 ok 9 delay ~ 36000ms after seven or more errors, got 37747.41856999474 ok 10 delay ~ 36000ms after seven or more errors, got 33250.933187862174 ok 11 delay back to 0ms after a success 1..11 # tests 11 # pass 11 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js' TAP version 13 # client.sendSpan() + client.flush() ok 1 should make a POST request ok 2 should send request to /intake/v2/events ok 3 should add secret token ok 4 should send reqeust as ndjson ok 5 should compress request ok 6 should expect json in response ok 7 should add proper User-Agent ok 8 should be equivalent ok 9 should be truthy ok 10 should be truthy ok 11 should be truthy ok 12 should be equal ok 13 should be equal ok 14 should be equal ok 15 should be truthy ok 16 should be equal ok 17 should be equal ok 18 should be equal ok 19 pid should be > 0, was 32879 ok 20 ppid should be > 0, was 32866 ok 21 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 22 process.title should be an array ok 23 process.title should contain at least two elements ok 24 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 25 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 26 string ok 27 should be truthy ok 28 string ok 29 should be truthy ok 30 string ok 31 should be truthy ok 32 should be equivalent # client.sendSpan(callback) + client.flush() ok 33 should make a POST request ok 34 should send request to /intake/v2/events ok 35 should add secret token ok 36 should send reqeust as ndjson ok 37 should compress request ok 38 should expect json in response ok 39 should add proper User-Agent ok 40 should be equivalent ok 41 should be truthy ok 42 should be truthy ok 43 should be truthy ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be truthy ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 pid should be > 0, was 32879 ok 52 ppid should be > 0, was 32866 ok 53 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 54 process.title should be an array ok 55 process.title should contain at least two elements ok 56 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 57 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 58 string ok 59 should be truthy ok 60 string ok 61 should be truthy ok 62 string ok 63 should be truthy ok 64 should be equivalent ok 65 should call callback # client.sendSpan() + client.end() ok 66 should make a POST request ok 67 should send request to /intake/v2/events ok 68 should add secret token ok 69 should send reqeust as ndjson ok 70 should compress request ok 71 should expect json in response ok 72 should add proper User-Agent ok 73 should be equivalent ok 74 should be truthy ok 75 should be truthy ok 76 should be truthy ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be truthy ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 pid should be > 0, was 32879 ok 85 ppid should be > 0, was 32866 ok 86 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 87 process.title should be an array ok 88 process.title should contain at least two elements ok 89 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 90 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 91 string ok 92 should be truthy ok 93 string ok 94 should be truthy ok 95 string ok 96 should be truthy ok 97 should be equivalent # single client.sendSpan ok 98 should make a POST request ok 99 should send request to /intake/v2/events ok 100 should add secret token ok 101 should send reqeust as ndjson ok 102 should compress request ok 103 should expect json in response ok 104 should add proper User-Agent ok 105 should be equivalent ok 106 should be truthy ok 107 should be truthy ok 108 should be truthy ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be truthy ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 pid should be > 0, was 32879 ok 117 ppid should be > 0, was 32866 ok 118 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 119 process.title should be an array ok 120 process.title should contain at least two elements ok 121 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 122 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 123 string ok 124 should be truthy ok 125 string ok 126 should be truthy ok 127 string ok 128 should be truthy ok 129 should be equivalent # multiple client.sendSpan (same request) ok 130 should make a POST request ok 131 should send request to /intake/v2/events ok 132 should add secret token ok 133 should send reqeust as ndjson ok 134 should compress request ok 135 should expect json in response ok 136 should add proper User-Agent ok 137 should be equivalent ok 138 should be truthy ok 139 should be truthy ok 140 should be truthy ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be truthy ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 pid should be > 0, was 32879 ok 149 ppid should be > 0, was 32866 ok 150 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 151 process.title should be an array ok 152 process.title should contain at least two elements ok 153 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 154 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 155 string ok 156 should be truthy ok 157 string ok 158 should be truthy ok 159 string ok 160 should be truthy ok 161 should be equivalent ok 162 should be equivalent ok 163 should be equivalent # multiple client.sendSpan (multiple requests) ok 164 should make a POST request ok 165 should send request to /intake/v2/events ok 166 should add secret token ok 167 should send reqeust as ndjson ok 168 should compress request ok 169 should expect json in response ok 170 should add proper User-Agent ok 171 should be equivalent ok 172 should be truthy ok 173 should be truthy ok 174 should be truthy ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be truthy ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 pid should be > 0, was 32879 ok 183 ppid should be > 0, was 32866 ok 184 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 185 process.title should be an array ok 186 process.title should contain at least two elements ok 187 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 188 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 189 string ok 190 should be truthy ok 191 string ok 192 should be truthy ok 193 string ok 194 should be truthy ok 195 should be equivalent ok 196 should be equivalent ok 197 should be equivalent ok 198 should make a POST request ok 199 should send request to /intake/v2/events ok 200 should add secret token ok 201 should send reqeust as ndjson ok 202 should compress request ok 203 should expect json in response ok 204 should add proper User-Agent ok 205 should be equivalent ok 206 should be truthy ok 207 should be truthy ok 208 should be truthy ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be truthy ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 pid should be > 0, was 32879 ok 217 ppid should be > 0, was 32866 ok 218 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 219 process.title should be an array ok 220 process.title should contain at least two elements ok 221 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 222 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 223 string ok 224 should be truthy ok 225 string ok 226 should be truthy ok 227 string ok 228 should be truthy ok 229 should be equivalent ok 230 should be equivalent ok 231 should be equivalent # client.sendTransaction() + client.flush() ok 232 should make a POST request ok 233 should send request to /intake/v2/events ok 234 should add secret token ok 235 should send reqeust as ndjson ok 236 should compress request ok 237 should expect json in response ok 238 should add proper User-Agent ok 239 should be equivalent ok 240 should be truthy ok 241 should be truthy ok 242 should be truthy ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be truthy ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 pid should be > 0, was 32879 ok 251 ppid should be > 0, was 32866 ok 252 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 253 process.title should be an array ok 254 process.title should contain at least two elements ok 255 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 256 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 257 string ok 258 should be truthy ok 259 string ok 260 should be truthy ok 261 string ok 262 should be truthy ok 263 should be equivalent # client.sendTransaction(callback) + client.flush() ok 264 should make a POST request ok 265 should send request to /intake/v2/events ok 266 should add secret token ok 267 should send reqeust as ndjson ok 268 should compress request ok 269 should expect json in response ok 270 should add proper User-Agent ok 271 should be equivalent ok 272 should be truthy ok 273 should be truthy ok 274 should be truthy ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be truthy ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 pid should be > 0, was 32879 ok 283 ppid should be > 0, was 32866 ok 284 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 285 process.title should be an array ok 286 process.title should contain at least two elements ok 287 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 288 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 289 string ok 290 should be truthy ok 291 string ok 292 should be truthy ok 293 string ok 294 should be truthy ok 295 should be equivalent ok 296 should call callback # client.sendTransaction() + client.end() ok 297 should make a POST request ok 298 should send request to /intake/v2/events ok 299 should add secret token ok 300 should send reqeust as ndjson ok 301 should compress request ok 302 should expect json in response ok 303 should add proper User-Agent ok 304 should be equivalent ok 305 should be truthy ok 306 should be truthy ok 307 should be truthy ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be truthy ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 pid should be > 0, was 32879 ok 316 ppid should be > 0, was 32866 ok 317 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 318 process.title should be an array ok 319 process.title should contain at least two elements ok 320 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 321 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 322 string ok 323 should be truthy ok 324 string ok 325 should be truthy ok 326 string ok 327 should be truthy ok 328 should be equivalent # single client.sendTransaction ok 329 should make a POST request ok 330 should send request to /intake/v2/events ok 331 should add secret token ok 332 should send reqeust as ndjson ok 333 should compress request ok 334 should expect json in response ok 335 should add proper User-Agent ok 336 should be equivalent ok 337 should be truthy ok 338 should be truthy ok 339 should be truthy ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be truthy ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 pid should be > 0, was 32879 ok 348 ppid should be > 0, was 32866 ok 349 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 350 process.title should be an array ok 351 process.title should contain at least two elements ok 352 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 353 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 354 string ok 355 should be truthy ok 356 string ok 357 should be truthy ok 358 string ok 359 should be truthy ok 360 should be equivalent # multiple client.sendTransaction (same request) ok 361 should make a POST request ok 362 should send request to /intake/v2/events ok 363 should add secret token ok 364 should send reqeust as ndjson ok 365 should compress request ok 366 should expect json in response ok 367 should add proper User-Agent ok 368 should be equivalent ok 369 should be truthy ok 370 should be truthy ok 371 should be truthy ok 372 should be equal ok 373 should be equal ok 374 should be equal ok 375 should be truthy ok 376 should be equal ok 377 should be equal ok 378 should be equal ok 379 pid should be > 0, was 32879 ok 380 ppid should be > 0, was 32866 ok 381 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 382 process.title should be an array ok 383 process.title should contain at least two elements ok 384 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 385 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 386 string ok 387 should be truthy ok 388 string ok 389 should be truthy ok 390 string ok 391 should be truthy ok 392 should be equivalent ok 393 should be equivalent ok 394 should be equivalent # multiple client.sendTransaction (multiple requests) ok 395 should make a POST request ok 396 should send request to /intake/v2/events ok 397 should add secret token ok 398 should send reqeust as ndjson ok 399 should compress request ok 400 should expect json in response ok 401 should add proper User-Agent ok 402 should be equivalent ok 403 should be truthy ok 404 should be truthy ok 405 should be truthy ok 406 should be equal ok 407 should be equal ok 408 should be equal ok 409 should be truthy ok 410 should be equal ok 411 should be equal ok 412 should be equal ok 413 pid should be > 0, was 32879 ok 414 ppid should be > 0, was 32866 ok 415 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 416 process.title should be an array ok 417 process.title should contain at least two elements ok 418 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 419 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 420 string ok 421 should be truthy ok 422 string ok 423 should be truthy ok 424 string ok 425 should be truthy ok 426 should be equivalent ok 427 should be equivalent ok 428 should be equivalent ok 429 should make a POST request ok 430 should send request to /intake/v2/events ok 431 should add secret token ok 432 should send reqeust as ndjson ok 433 should compress request ok 434 should expect json in response ok 435 should add proper User-Agent ok 436 should be equivalent ok 437 should be truthy ok 438 should be truthy ok 439 should be truthy ok 440 should be equal ok 441 should be equal ok 442 should be equal ok 443 should be truthy ok 444 should be equal ok 445 should be equal ok 446 should be equal ok 447 pid should be > 0, was 32879 ok 448 ppid should be > 0, was 32866 ok 449 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 450 process.title should be an array ok 451 process.title should contain at least two elements ok 452 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 453 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 454 string ok 455 should be truthy ok 456 string ok 457 should be truthy ok 458 string ok 459 should be truthy ok 460 should be equivalent ok 461 should be equivalent ok 462 should be equivalent # client.sendError() + client.flush() ok 463 should make a POST request ok 464 should send request to /intake/v2/events ok 465 should add secret token ok 466 should send reqeust as ndjson ok 467 should compress request ok 468 should expect json in response ok 469 should add proper User-Agent ok 470 should be equivalent ok 471 should be truthy ok 472 should be truthy ok 473 should be truthy ok 474 should be equal ok 475 should be equal ok 476 should be equal ok 477 should be truthy ok 478 should be equal ok 479 should be equal ok 480 should be equal ok 481 pid should be > 0, was 32879 ok 482 ppid should be > 0, was 32866 ok 483 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 484 process.title should be an array ok 485 process.title should contain at least two elements ok 486 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 487 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 488 string ok 489 should be truthy ok 490 string ok 491 should be truthy ok 492 string ok 493 should be truthy ok 494 should be equivalent # client.sendError(callback) + client.flush() ok 495 should make a POST request ok 496 should send request to /intake/v2/events ok 497 should add secret token ok 498 should send reqeust as ndjson ok 499 should compress request ok 500 should expect json in response ok 501 should add proper User-Agent ok 502 should be equivalent ok 503 should be truthy ok 504 should be truthy ok 505 should be truthy ok 506 should be equal ok 507 should be equal ok 508 should be equal ok 509 should be truthy ok 510 should be equal ok 511 should be equal ok 512 should be equal ok 513 pid should be > 0, was 32879 ok 514 ppid should be > 0, was 32866 ok 515 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 516 process.title should be an array ok 517 process.title should contain at least two elements ok 518 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 519 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 520 string ok 521 should be truthy ok 522 string ok 523 should be truthy ok 524 string ok 525 should be truthy ok 526 should be equivalent ok 527 should call callback # client.sendError() + client.end() ok 528 should make a POST request ok 529 should send request to /intake/v2/events ok 530 should add secret token ok 531 should send reqeust as ndjson ok 532 should compress request ok 533 should expect json in response ok 534 should add proper User-Agent ok 535 should be equivalent ok 536 should be truthy ok 537 should be truthy ok 538 should be truthy ok 539 should be equal ok 540 should be equal ok 541 should be equal ok 542 should be truthy ok 543 should be equal ok 544 should be equal ok 545 should be equal ok 546 pid should be > 0, was 32879 ok 547 ppid should be > 0, was 32866 ok 548 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 549 process.title should be an array ok 550 process.title should contain at least two elements ok 551 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 552 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 553 string ok 554 should be truthy ok 555 string ok 556 should be truthy ok 557 string ok 558 should be truthy ok 559 should be equivalent # single client.sendError ok 560 should make a POST request ok 561 should send request to /intake/v2/events ok 562 should add secret token ok 563 should send reqeust as ndjson ok 564 should compress request ok 565 should expect json in response ok 566 should add proper User-Agent ok 567 should be equivalent ok 568 should be truthy ok 569 should be truthy ok 570 should be truthy ok 571 should be equal ok 572 should be equal ok 573 should be equal ok 574 should be truthy ok 575 should be equal ok 576 should be equal ok 577 should be equal ok 578 pid should be > 0, was 32879 ok 579 ppid should be > 0, was 32866 ok 580 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 581 process.title should be an array ok 582 process.title should contain at least two elements ok 583 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 584 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 585 string ok 586 should be truthy ok 587 string ok 588 should be truthy ok 589 string ok 590 should be truthy ok 591 should be equivalent # multiple client.sendError (same request) ok 592 should make a POST request ok 593 should send request to /intake/v2/events ok 594 should add secret token ok 595 should send reqeust as ndjson ok 596 should compress request ok 597 should expect json in response ok 598 should add proper User-Agent ok 599 should be equivalent ok 600 should be truthy ok 601 should be truthy ok 602 should be truthy ok 603 should be equal ok 604 should be equal ok 605 should be equal ok 606 should be truthy ok 607 should be equal ok 608 should be equal ok 609 should be equal ok 610 pid should be > 0, was 32879 ok 611 ppid should be > 0, was 32866 ok 612 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 613 process.title should be an array ok 614 process.title should contain at least two elements ok 615 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 616 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 617 string ok 618 should be truthy ok 619 string ok 620 should be truthy ok 621 string ok 622 should be truthy ok 623 should be equivalent ok 624 should be equivalent ok 625 should be equivalent # multiple client.sendError (multiple requests) ok 626 should make a POST request ok 627 should send request to /intake/v2/events ok 628 should add secret token ok 629 should send reqeust as ndjson ok 630 should compress request ok 631 should expect json in response ok 632 should add proper User-Agent ok 633 should be equivalent ok 634 should be truthy ok 635 should be truthy ok 636 should be truthy ok 637 should be equal ok 638 should be equal ok 639 should be equal ok 640 should be truthy ok 641 should be equal ok 642 should be equal ok 643 should be equal ok 644 pid should be > 0, was 32879 ok 645 ppid should be > 0, was 32866 ok 646 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 647 process.title should be an array ok 648 process.title should contain at least two elements ok 649 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 650 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 651 string ok 652 should be truthy ok 653 string ok 654 should be truthy ok 655 string ok 656 should be truthy ok 657 should be equivalent ok 658 should be equivalent ok 659 should be equivalent ok 660 should make a POST request ok 661 should send request to /intake/v2/events ok 662 should add secret token ok 663 should send reqeust as ndjson ok 664 should compress request ok 665 should expect json in response ok 666 should add proper User-Agent ok 667 should be equivalent ok 668 should be truthy ok 669 should be truthy ok 670 should be truthy ok 671 should be equal ok 672 should be equal ok 673 should be equal ok 674 should be truthy ok 675 should be equal ok 676 should be equal ok 677 should be equal ok 678 pid should be > 0, was 32879 ok 679 ppid should be > 0, was 32866 ok 680 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 681 process.title should be an array ok 682 process.title should contain at least two elements ok 683 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 684 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 685 string ok 686 should be truthy ok 687 string ok 688 should be truthy ok 689 string ok 690 should be truthy ok 691 should be equivalent ok 692 should be equivalent ok 693 should be equivalent # client.sendMetricSet() + client.flush() ok 694 should make a POST request ok 695 should send request to /intake/v2/events ok 696 should add secret token ok 697 should send reqeust as ndjson ok 698 should compress request ok 699 should expect json in response ok 700 should add proper User-Agent ok 701 should be equivalent ok 702 should be truthy ok 703 should be truthy ok 704 should be truthy ok 705 should be equal ok 706 should be equal ok 707 should be equal ok 708 should be truthy ok 709 should be equal ok 710 should be equal ok 711 should be equal ok 712 pid should be > 0, was 32879 ok 713 ppid should be > 0, was 32866 ok 714 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 715 process.title should be an array ok 716 process.title should contain at least two elements ok 717 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 718 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 719 string ok 720 should be truthy ok 721 string ok 722 should be truthy ok 723 string ok 724 should be truthy ok 725 should be equivalent # client.sendMetricSet(callback) + client.flush() ok 726 should make a POST request ok 727 should send request to /intake/v2/events ok 728 should add secret token ok 729 should send reqeust as ndjson ok 730 should compress request ok 731 should expect json in response ok 732 should add proper User-Agent ok 733 should be equivalent ok 734 should be truthy ok 735 should be truthy ok 736 should be truthy ok 737 should be equal ok 738 should be equal ok 739 should be equal ok 740 should be truthy ok 741 should be equal ok 742 should be equal ok 743 should be equal ok 744 pid should be > 0, was 32879 ok 745 ppid should be > 0, was 32866 ok 746 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 747 process.title should be an array ok 748 process.title should contain at least two elements ok 749 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 750 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 751 string ok 752 should be truthy ok 753 string ok 754 should be truthy ok 755 string ok 756 should be truthy ok 757 should be equivalent ok 758 should call callback # client.sendMetricSet() + client.end() ok 759 should make a POST request ok 760 should send request to /intake/v2/events ok 761 should add secret token ok 762 should send reqeust as ndjson ok 763 should compress request ok 764 should expect json in response ok 765 should add proper User-Agent ok 766 should be equivalent ok 767 should be truthy ok 768 should be truthy ok 769 should be truthy ok 770 should be equal ok 771 should be equal ok 772 should be equal ok 773 should be truthy ok 774 should be equal ok 775 should be equal ok 776 should be equal ok 777 pid should be > 0, was 32879 ok 778 ppid should be > 0, was 32866 ok 779 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 780 process.title should be an array ok 781 process.title should contain at least two elements ok 782 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 783 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 784 string ok 785 should be truthy ok 786 string ok 787 should be truthy ok 788 string ok 789 should be truthy ok 790 should be equivalent # single client.sendMetricSet ok 791 should make a POST request ok 792 should send request to /intake/v2/events ok 793 should add secret token ok 794 should send reqeust as ndjson ok 795 should compress request ok 796 should expect json in response ok 797 should add proper User-Agent ok 798 should be equivalent ok 799 should be truthy ok 800 should be truthy ok 801 should be truthy ok 802 should be equal ok 803 should be equal ok 804 should be equal ok 805 should be truthy ok 806 should be equal ok 807 should be equal ok 808 should be equal ok 809 pid should be > 0, was 32879 ok 810 ppid should be > 0, was 32866 ok 811 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 812 process.title should be an array ok 813 process.title should contain at least two elements ok 814 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 815 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 816 string ok 817 should be truthy ok 818 string ok 819 should be truthy ok 820 string ok 821 should be truthy ok 822 should be equivalent # multiple client.sendMetricSet (same request) ok 823 should make a POST request ok 824 should send request to /intake/v2/events ok 825 should add secret token ok 826 should send reqeust as ndjson ok 827 should compress request ok 828 should expect json in response ok 829 should add proper User-Agent ok 830 should be equivalent ok 831 should be truthy ok 832 should be truthy ok 833 should be truthy ok 834 should be equal ok 835 should be equal ok 836 should be equal ok 837 should be truthy ok 838 should be equal ok 839 should be equal ok 840 should be equal ok 841 pid should be > 0, was 32879 ok 842 ppid should be > 0, was 32866 ok 843 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 844 process.title should be an array ok 845 process.title should contain at least two elements ok 846 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 847 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 848 string ok 849 should be truthy ok 850 string ok 851 should be truthy ok 852 string ok 853 should be truthy ok 854 should be equivalent ok 855 should be equivalent ok 856 should be equivalent # multiple client.sendMetricSet (multiple requests) ok 857 should make a POST request ok 858 should send request to /intake/v2/events ok 859 should add secret token ok 860 should send reqeust as ndjson ok 861 should compress request ok 862 should expect json in response ok 863 should add proper User-Agent ok 864 should be equivalent ok 865 should be truthy ok 866 should be truthy ok 867 should be truthy ok 868 should be equal ok 869 should be equal ok 870 should be equal ok 871 should be truthy ok 872 should be equal ok 873 should be equal ok 874 should be equal ok 875 pid should be > 0, was 32879 ok 876 ppid should be > 0, was 32866 ok 877 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 878 process.title should be an array ok 879 process.title should contain at least two elements ok 880 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 881 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 882 string ok 883 should be truthy ok 884 string ok 885 should be truthy ok 886 string ok 887 should be truthy ok 888 should be equivalent ok 889 should be equivalent ok 890 should be equivalent ok 891 should make a POST request ok 892 should send request to /intake/v2/events ok 893 should add secret token ok 894 should send reqeust as ndjson ok 895 should compress request ok 896 should expect json in response ok 897 should add proper User-Agent ok 898 should be equivalent ok 899 should be truthy ok 900 should be truthy ok 901 should be truthy ok 902 should be equal ok 903 should be equal ok 904 should be equal ok 905 should be truthy ok 906 should be equal ok 907 should be equal ok 908 should be equal ok 909 pid should be > 0, was 32879 ok 910 ppid should be > 0, was 32866 ok 911 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 912 process.title should be an array ok 913 process.title should contain at least two elements ok 914 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 915 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 916 string ok 917 should be truthy ok 918 string ok 919 should be truthy ok 920 string ok 921 should be truthy ok 922 should be equivalent ok 923 should be equivalent ok 924 should be equivalent # client.flush(callback) - with active request ok 925 no outgoing HTTP request to begin with ok 926 an outgoing HTTP request should be active ok 927 should make a POST request ok 928 should send request to /intake/v2/events ok 929 should add secret token ok 930 should send reqeust as ndjson ok 931 should compress request ok 932 should expect json in response ok 933 should add proper User-Agent ok 934 should be equivalent ok 935 should be truthy ok 936 should be truthy ok 937 should be truthy ok 938 should be equal ok 939 should be equal ok 940 should be equal ok 941 should be truthy ok 942 should be equal ok 943 should be equal ok 944 should be equal ok 945 pid should be > 0, was 32879 ok 946 ppid should be > 0, was 32866 ok 947 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 948 process.title should be an array ok 949 process.title should contain at least two elements ok 950 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 951 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 952 string ok 953 should be truthy ok 954 string ok 955 should be truthy ok 956 string ok 957 should be truthy ok 958 should be equivalent ok 959 the outgoing HTTP request should be done # client.flush(callback) - with queued request ok 960 an outgoing HTTP request should be active ok 961 should make a POST request ok 962 should send request to /intake/v2/events ok 963 should add secret token ok 964 should send reqeust as ndjson ok 965 should compress request ok 966 should expect json in response ok 967 should add proper User-Agent ok 968 should be equivalent ok 969 should be truthy ok 970 should be truthy ok 971 should be truthy ok 972 should be equal ok 973 should be equal ok 974 should be equal ok 975 should be truthy ok 976 should be equal ok 977 should be equal ok 978 should be equal ok 979 pid should be > 0, was 32879 ok 980 ppid should be > 0, was 32866 ok 981 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 982 process.title should be an array ok 983 process.title should contain at least two elements ok 984 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 985 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 986 string ok 987 should be truthy ok 988 string ok 989 should be truthy ok 990 string ok 991 should be truthy ok 992 should be equivalent ok 993 should make a POST request ok 994 should send request to /intake/v2/events ok 995 should add secret token ok 996 should send reqeust as ndjson ok 997 should compress request ok 998 should expect json in response ok 999 should add proper User-Agent ok 1000 should be equivalent ok 1001 should be truthy ok 1002 should be truthy ok 1003 should be truthy ok 1004 should be equal ok 1005 should be equal ok 1006 should be equal ok 1007 should be truthy ok 1008 should be equal ok 1009 should be equal ok 1010 should be equal ok 1011 pid should be > 0, was 32879 ok 1012 ppid should be > 0, was 32866 ok 1013 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1014 process.title should be an array ok 1015 process.title should contain at least two elements ok 1016 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1017 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 1018 string ok 1019 should be truthy ok 1020 string ok 1021 should be truthy ok 1022 string ok 1023 should be truthy ok 1024 should be equivalent ok 1025 the outgoing HTTP request should be done # 2nd flush before 1st flush have finished ok 1026 should make a POST request ok 1027 should send request to /intake/v2/events ok 1028 should add secret token ok 1029 should send reqeust as ndjson ok 1030 should compress request ok 1031 should expect json in response ok 1032 should add proper User-Agent ok 1033 should be equivalent ok 1034 should be truthy ok 1035 should be truthy ok 1036 should be truthy ok 1037 should be equal ok 1038 should be equal ok 1039 should be equal ok 1040 should be truthy ok 1041 should be equal ok 1042 should be equal ok 1043 should be equal ok 1044 pid should be > 0, was 32879 ok 1045 ppid should be > 0, was 32866 ok 1046 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1047 process.title should be an array ok 1048 process.title should contain at least two elements ok 1049 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1050 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 1051 string ok 1052 should be truthy ok 1053 string ok 1054 should be truthy ok 1055 string ok 1056 should be truthy ok 1057 should be equivalent ok 1058 should make a POST request ok 1059 should send request to /intake/v2/events ok 1060 should add secret token ok 1061 should send reqeust as ndjson ok 1062 should compress request ok 1063 should expect json in response ok 1064 should add proper User-Agent ok 1065 should be equivalent ok 1066 should be truthy ok 1067 should be truthy ok 1068 should be truthy ok 1069 should be equal ok 1070 should be equal ok 1071 should be equal ok 1072 should be truthy ok 1073 should be equal ok 1074 should be equal ok 1075 should be equal ok 1076 pid should be > 0, was 32879 ok 1077 ppid should be > 0, was 32866 ok 1078 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1079 process.title should be an array ok 1080 process.title should contain at least two elements ok 1081 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1082 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 1083 string ok 1084 should be truthy ok 1085 string ok 1086 should be truthy ok 1087 string ok 1088 should be truthy ok 1089 should be equivalent ok 1090 should have received 2 requests ok 1091 should have received 2 requests completely # client.end(callback) ok 1092 should call callback ok 1093 should make a POST request ok 1094 should send request to /intake/v2/events ok 1095 should add secret token ok 1096 should send reqeust as ndjson ok 1097 should compress request ok 1098 should expect json in response ok 1099 should add proper User-Agent ok 1100 should be equivalent ok 1101 should be truthy ok 1102 should be truthy ok 1103 should be truthy ok 1104 should be equal ok 1105 should be equal ok 1106 should be equal ok 1107 should be truthy ok 1108 should be equal ok 1109 should be equal ok 1110 should be equal ok 1111 pid should be > 0, was 32879 ok 1112 ppid should be > 0, was 32866 ok 1113 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1114 process.title should be an array ok 1115 process.title should contain at least two elements ok 1116 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 1117 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/basic.test.js)" ok 1118 string ok 1119 should be truthy ok 1120 string ok 1121 should be truthy ok 1122 string ok 1123 should be truthy ok 1124 should be equivalent # client.sent ok 1125 sent=0 after 1st round of sending # APM server got a request ok 1126 sent=3 after 1st flush ok 1127 sent=3 after 2nd round of sending # APM server got a request ok 1128 sent=6 after 2nd flush # should not open new request until it's needed after flush ok 1129 should only send new request when expected ok 1130 should only send new request when expected # should not open new request until it's needed after timeout ok 1131 should only send new request when expected ok 1132 should only send new request when expected # cloud metadata: _encodedMetadata maintains cloud info after re-config ok 1133 initial service name set ok 1134 initial agent name set ok 1135 initial agent version set ok 1136 no cloud metadata set initially ok 1137 service name still set ok 1138 agent name still set ok 1139 agent version still set ok 1140 cloud metadata set after fetch ok 1141 cloud metadata set after fetch ok 1142 service name still set ok 1143 agent name still set ok 1144 agent version still set ok 1145 service.framework.name properly set ok 1146 service.framework.version properly set ok 1147 cloud metadata still set after re-config ok 1148 cloud metadata "passed through" after re-config # cloud metadata: _fetchAndEncodeMetadata with fetcher configured ok 1149 service name set ok 1150 agent name set ok 1151 agent version set ok 1152 cloud metadata set with a fetcher configured ok 1153 cloud metadata value represented # cloud metadata: _fetchAndEncodeMetadata with fetcher configured but an error ok 1154 service name set ok 1155 agent name set ok 1156 agent version set ok 1157 cloud metadata not set when there is a fetcher error 1..1157 # tests 1157 # pass 1157 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/central-config.test.js' TAP version 13 # central config disabled # central config enabled ok 1 should call _pollConfig # polling ok 2 should make a GET request ok 3 should send request to /config/v1/agents ok 4 should encode query in query params ok 5 should add secret token ok 6 should add proper User-Agent ok 7 should not have If-None-Match header ok 8 should be equal ok 9 should be equal ok 10 should be equal ok 11 should make a GET request ok 12 should send request to /config/v1/agents ok 13 should encode query in query params ok 14 should add secret token ok 15 should add proper User-Agent ok 16 should not have If-None-Match header ok 17 should be equal ok 18 should be equal ok 19 should be equal ok 20 should make a GET request ok 21 should send request to /config/v1/agents ok 22 should encode query in query params ok 23 should add secret token ok 24 should add proper User-Agent ok 25 should not have If-None-Match header ok 26 should be equal ok 27 should be equal ok 28 should be equal ok 29 should make a GET request ok 30 should send request to /config/v1/agents ok 31 should encode query in query params ok 32 should add secret token ok 33 should add proper User-Agent ok 34 should not have If-None-Match header ok 35 should make a GET request ok 36 should send request to /config/v1/agents ok 37 should encode query in query params ok 38 should add secret token ok 39 should add proper User-Agent ok 40 should not have If-None-Match header ok 41 should make a GET request ok 42 should send request to /config/v1/agents ok 43 should encode query in query params ok 44 should add secret token ok 45 should add proper User-Agent ok 46 should not have If-None-Match header ok 47 should emit config after 6th request ok 48 should be equivalent ok 49 should make a GET request ok 50 should send request to /config/v1/agents ok 51 should encode query in query params ok 52 should add secret token ok 53 should add proper User-Agent ok 54 should be equal ok 55 should make a GET request ok 56 should send request to /config/v1/agents ok 57 should encode query in query params ok 58 should add secret token ok 59 should add proper User-Agent ok 60 got an err, as expected, on req 8 ok 61 should be equal 1..61 # tests 61 # pass 61 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/config.test.js' TAP version 13 # package ok 1 should be equal ok 2 should be truthy # throw if missing required options ok 3 throws if no options are provided ok 4 throws if only agentName is provided ok 5 throws if only agentVersion is provided ok 6 throws if only serviceName is provided ok 7 throws if only userAgent is provided ok 8 throws if userAgent is missing ok 9 throws if serviceName is missing ok 10 throws if agentVersion is missing ok 11 throws if agentName is missing ok 12 doesn't throw if required options are provided # should work without new ok 13 should be truthy # null value config options shouldn't throw ok 14 should not throw # no secretToken or apiKey ok 15 no Authorization header # has apiKey ok 16 should use apiKey in authorization header # custom headers ok 17 should be equal # serverUrl is invalid ok 18 should throw # serverUrl contains path ok 19 should be equal # reject unauthorized TLS by default ok 20 should be truthy ok 21 should be equal ok 22 should be equal # allow unauthorized TLS if asked ok 23 should let request through # allow self-signed TLS certificate by specifying the CA ok 24 should let request through # metadata ok 25 should be equivalent ok 26 should be truthy ok 27 pid should be > 0, was 32882 ok 28 ppid should be > 0, was 32866 ok 29 should be truthy ok 30 should be truthy ok 31 should be truthy ok 32 should be truthy ok 33 should be equal ok 34 should be truthy ok 35 should be equal ok 36 should be truthy # metadata - default values ok 37 should be equivalent # metadata - container info ok 38 should be truthy ok 39 should be truthy ok 40 should be equivalent ok 41 should be equivalent # agentName ok 42 should be equal # payloadLogFile ok 43 should have received 5 objects ok 44 expected line 1 in the log file to match item no 1 received by the server ok 45 expected line 2 in the log file to match item no 2 received by the server ok 46 expected line 3 in the log file to match item no 3 received by the server ok 47 expected line 4 in the log file to match item no 4 received by the server ok 48 expected line 5 in the log file to match item no 5 received by the server # update conf ok 49 should be equal # 503 response from apm-server for central config should not crash ok 50 agent for central config requests is defined ok 51 got request-error on _pollConfig ok 52 request-error from _pollConfig includes expected error message 1..52 # tests 52 # pass 52 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/edge-cases.test.js' TAP version 13 # Event: close - if chopper ends ok 1 should emit close event # Event: close - if chopper is destroyed ok 2 should emit close event # write after end ok 3 should be truthy ok 4 should be equal # request with error - no body ok 5 should be truthy ok 6 should be equal ok 7 should be equal ok 8 should be equal ok 9 should be equal ok 10 should be equal # request with error - non json body ok 11 should be truthy ok 12 should be equal ok 13 should be equal ok 14 should be equal ok 15 should be equal ok 16 should be equal # request with error - invalid json body ok 17 should be truthy ok 18 should be equal ok 19 should be equal ok 20 should be equal ok 21 should be equal ok 22 should be equal # request with error - json body without accepted or errors properties ok 23 should be truthy ok 24 should be equal ok 25 should be equal ok 26 should be equal ok 27 should be equal ok 28 should be equal # request with error - json body with accepted and errors properties ok 29 should be truthy ok 30 should be equal ok 31 should be equal ok 32 should be equal ok 33 should be equivalent ok 34 should be equal # request with error - json body where Content-Type contains charset ok 35 should be truthy ok 36 should be equal ok 37 should be equal ok 38 should be equal ok 39 should be equivalent ok 40 should be equal # socket hang up ok 41 should be equal ok 42 should be equal ok 43 client should not emit close # socket hang up - continue with new request ok 44 should make a POST request ok 45 should send request to /intake/v2/events ok 46 should add secret token ok 47 should send reqeust as ndjson ok 48 should compress request ok 49 should expect json in response ok 50 should add proper User-Agent ok 51 got "socket hang up" request-error ok 52 request-error code is "ECONNRESET" ok 53 should make a POST request ok 54 should send request to /intake/v2/events ok 55 should add secret token ok 56 should send reqeust as ndjson ok 57 should compress request ok 58 should expect json in response ok 59 should add proper User-Agent ok 60 should be equivalent ok 61 should be truthy ok 62 should be truthy ok 63 should be truthy ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be truthy ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 pid should be > 0, was 32883 ok 72 ppid should be > 0, was 32866 ok 73 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 74 process.title should be an array ok 75 process.title should contain at least two elements ok 76 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 77 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/edge-cases.test.js)" ok 78 string ok 79 should be truthy ok 80 string ok 81 should be truthy ok 82 string ok 83 should be truthy ok 84 should be equivalent ok 85 should end request ok 86 should emit finish after last request # intakeResTimeoutOnEnd ok 87 got a request-error from the client ok 88 timeout should be about 500ms, got 503ms ok 89 should be equal # intakeResTimeout ok 90 got a request-error from the client ok 91 timeout should be about 400ms, got 403ms ok 92 should be equal # socket timeout - server response too slow ok 93 got a request-error from the client ok 94 timeout should occur between 1-2 seconds: delta=1005ms ok 95 should be equal # socket timeout - client request too slow ok 96 timeout should occur between 1-2 seconds ok 97 should be equal # client.destroy() - on fresh client ok 98 should emit close # client.destroy() - on ended client ok 99 should emit finish only once ok 100 should emit close event # client.destroy() - on client with request in progress ok 101 should emit close event # getCloudMetadata after client.destroy() should not result in error # destroy client ok 102 should emit close event # calling back with cloud metadata # client.send*() after client.destroy() should not result in error ok 103 should be truthy # client.sendSpan(): handle circular references ok 104 should make a POST request ok 105 should send request to /intake/v2/events ok 106 should add secret token ok 107 should send reqeust as ndjson ok 108 should compress request ok 109 should expect json in response ok 110 should add proper User-Agent ok 111 should be equivalent ok 112 should be truthy ok 113 should be truthy ok 114 should be truthy ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be truthy ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 pid should be > 0, was 32883 ok 123 ppid should be > 0, was 32866 ok 124 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 125 process.title should be an array ok 126 process.title should contain at least two elements ok 127 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 128 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/edge-cases.test.js)" ok 129 string ok 130 should be truthy ok 131 string ok 132 should be truthy ok 133 string ok 134 should be truthy ok 135 should be equivalent # client.sendTransaction(): handle circular references ok 136 should make a POST request ok 137 should send request to /intake/v2/events ok 138 should add secret token ok 139 should send reqeust as ndjson ok 140 should compress request ok 141 should expect json in response ok 142 should add proper User-Agent ok 143 should be equivalent ok 144 should be truthy ok 145 should be truthy ok 146 should be truthy ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be truthy ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 pid should be > 0, was 32883 ok 155 ppid should be > 0, was 32866 ok 156 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 157 process.title should be an array ok 158 process.title should contain at least two elements ok 159 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 160 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/edge-cases.test.js)" ok 161 string ok 162 should be truthy ok 163 string ok 164 should be truthy ok 165 string ok 166 should be truthy ok 167 should be equivalent # client.sendError(): handle circular references ok 168 should make a POST request ok 169 should send request to /intake/v2/events ok 170 should add secret token ok 171 should send reqeust as ndjson ok 172 should compress request ok 173 should expect json in response ok 174 should add proper User-Agent ok 175 should be equivalent ok 176 should be truthy ok 177 should be truthy ok 178 should be truthy ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be truthy ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 pid should be > 0, was 32883 ok 187 ppid should be > 0, was 32866 ok 188 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 189 process.title should be an array ok 190 process.title should contain at least two elements ok 191 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 192 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/edge-cases.test.js)" ok 193 string ok 194 should be truthy ok 195 string ok 196 should be truthy ok 197 string ok 198 should be truthy ok 199 should be equivalent # client.flush callbacks must be called, even if no active handles ok 200 stdout shows both callbacks were called ok 201 should complete quickly, ie. not timeout (was: 226ms) ok 202 APM server got an error object from /Users/jun.lin/Developer/apm-nodejs-http-client/test/lib/call-me-back-maybe.js ok 203 error message is "boom" 1..203 # tests 203 # pass 203 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/expectExtraMetadata.test.js' TAP version 13 # expectExtraMetadata and setExtraMetadata used properly ok 1 APM Server got 2 events ok 2 event 0 is metadata ok 3 setExtraMetadata added "foo" field ok 4 setExtraMetadata set nested service.runtime.name field properly ok 5 event 1 is a transaction # empty setExtraMetadata is fine, and calling after send* is fine ok 6 APM Server got 2 events ok 7 event 0 is metadata ok 8 event 1 is a transaction # expectExtraMetadata:true with *no* setExtraMetadata call results in a corked client ok 9 hit timeout without an intake request to APM server 1..9 # tests 9 # pass 9 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/k8s.test.js' TAP version 13 # no environment variables ok 1 should be equal # kubernetesNodeName only ok 2 should be equivalent # kubernetesNamespace only ok 3 should be equivalent # kubernetesPodName only ok 4 should be equivalent # kubernetesPodUID only ok 5 should be equivalent # all ok 6 should be equivalent # all except kubernetesNodeName ok 7 should be equivalent # all except kubernetesNamespace ok 8 should be equivalent # all except kubernetesPodName ok 9 should be equivalent # all except kubernetesPodUID ok 10 should be equivalent # Tests for ../lib/container-info ok 11 expected pod ID returned ok 12 expected pod ID returned ok 13 expected pod ID returned ok 14 expected pod ID returned ok 15 expected pod ID returned ok 16 expected pod ID returned ok 17 expected pod ID returned ok 18 expected pod ID returned ok 19 expected pod ID returned ok 20 expected pod ID returned ok 21 expected pod ID returned ok 22 expected pod ID returned 1..22 # tests 22 # pass 22 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/lambda-usage.test.js' TAP version 13 # lambda usage # setup mock APM server # clients stays corked before .lambdaStart() ok 1 corked after bufferWindowSize events and bufferWindowTime ok 2 no intake request was made to APM Server # lambda invocation ok 3 at least 2 intake requests to APM Server ok 4 the last intake request had "?flushed=true" query param ok 5 second last event is the lambda transaction ok 6 last event is the lambda span # pause between lambda invocations # second lambda invocation ok 7 lateSpanInSameTick flush callback not yet called ok 8 lateSpanInNextTick flush callback not yet called ok 9 no intake request was made to APM Server since last lambdaEnd ok 10 3 intake requests to APM Server ok 11 lateSpanInSameTick flush callback has now been called ok 12 lateSpanInNextTick flush callback has now been called ok 13 the first intake request has 2 events ok 14 of which the second event is the lateSpanInSameTick ok 15 the second intake request has 2 events ok 16 of which the second event is the lateSpanInNextTick ok 17 the last intake request had "?flushed=true" query param # teardown 1..17 # tests 17 # pass 17 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/metadata-filter.test.js' TAP version 13 # addMetadataFilter ok 1 APM server got metadata ok 2 metadata.process.argv was removed ok 3 metadata.labels.foo was added 1..3 # tests 3 # pass 3 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/side-effects.test.js' TAP version 13 # client should not hold the process open ok 1 should make a POST request ok 2 should send request to /intake/v2/events ok 3 should add secret token ok 4 should send reqeust as ndjson ok 5 should compress request ok 6 should expect json in response ok 7 should add proper User-Agent ok 8 should be equivalent ok 9 should be truthy ok 10 should be truthy ok 11 should be truthy ok 12 should be equal ok 13 should be equal ok 14 should be equal ok 15 should be truthy ok 16 should be equal ok 17 should be equal ok 18 should be equal ok 19 pid should be > 0, was 32900 ok 20 ppid should be > 0, was 32899 ok 21 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 22 process.title should be an array ok 23 process.title should contain at least two elements ok 24 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 25 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/lib/unref-client.js)" ok 26 string ok 27 should be truthy ok 28 string ok 29 should be truthy ok 30 string ok 31 should be truthy ok 32 should be equivalent ok 33 should not take more than 300ms to complete (was: 37ms) # client should not hold the process open even if APM server not responding ok 34 should make a POST request ok 35 should send request to /intake/v2/events ok 36 should add secret token ok 37 should send reqeust as ndjson ok 38 should compress request ok 39 should expect json in response ok 40 should add proper User-Agent ok 41 should be equivalent ok 42 should be truthy ok 43 should be truthy ok 44 should be truthy ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be truthy ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 pid should be > 0, was 32901 ok 53 ppid should be > 0, was 32899 ok 54 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 55 process.title should be an array ok 56 process.title should contain at least two elements ok 57 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 58 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/lib/unref-client.js)" ok 59 string ok 60 should be truthy ok 61 string ok 62 should be truthy ok 63 string ok 64 should be truthy ok 65 should be equivalent ok 66 no error from executing /Users/jun.lin/Developer/apm-nodejs-http-client/test/lib/unref-client.js ok 67 should take approximately 1000ms to timeout (was: 1052ms) 1..67 # tests 67 # pass 67 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/stringify.test.js' TAP version 13 # stringify transaction request headers ok 1 should make a POST request ok 2 should send request to /intake/v2/events ok 3 should add secret token ok 4 should send reqeust as ndjson ok 5 should compress request ok 6 should expect json in response ok 7 should add proper User-Agent ok 8 should be equivalent ok 9 should be truthy ok 10 should be truthy ok 11 should be truthy ok 12 should be equal ok 13 should be equal ok 14 should be equal ok 15 should be truthy ok 16 should be equal ok 17 should be equal ok 18 should be equal ok 19 pid should be > 0, was 32902 ok 20 ppid should be > 0, was 32866 ok 21 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 22 process.title should be an array ok 23 process.title should contain at least two elements ok 24 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 25 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/stringify.test.js)" ok 26 string ok 27 should be truthy ok 28 string ok 29 should be truthy ok 30 string ok 31 should be truthy ok 32 should be equivalent # stringify transaction response headers ok 33 should make a POST request ok 34 should send request to /intake/v2/events ok 35 should add secret token ok 36 should send reqeust as ndjson ok 37 should compress request ok 38 should expect json in response ok 39 should add proper User-Agent ok 40 should be equivalent ok 41 should be truthy ok 42 should be truthy ok 43 should be truthy ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be truthy ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 pid should be > 0, was 32902 ok 52 ppid should be > 0, was 32866 ok 53 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 54 process.title should be an array ok 55 process.title should contain at least two elements ok 56 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 57 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/stringify.test.js)" ok 58 string ok 59 should be truthy ok 60 string ok 61 should be truthy ok 62 string ok 63 should be truthy ok 64 should be equivalent # stringify error request headers ok 65 should make a POST request ok 66 should send request to /intake/v2/events ok 67 should add secret token ok 68 should send reqeust as ndjson ok 69 should compress request ok 70 should expect json in response ok 71 should add proper User-Agent ok 72 should be equivalent ok 73 should be truthy ok 74 should be truthy ok 75 should be truthy ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be truthy ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 pid should be > 0, was 32902 ok 84 ppid should be > 0, was 32866 ok 85 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 86 process.title should be an array ok 87 process.title should contain at least two elements ok 88 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 89 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/stringify.test.js)" ok 90 string ok 91 should be truthy ok 92 string ok 93 should be truthy ok 94 string ok 95 should be truthy ok 96 should be equivalent # stringify error response headers ok 97 should make a POST request ok 98 should send request to /intake/v2/events ok 99 should add secret token ok 100 should send reqeust as ndjson ok 101 should compress request ok 102 should expect json in response ok 103 should add proper User-Agent ok 104 should be equivalent ok 105 should be truthy ok 106 should be truthy ok 107 should be truthy ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be truthy ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 pid should be > 0, was 32902 ok 116 ppid should be > 0, was 32866 ok 117 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 118 process.title should be an array ok 119 process.title should contain at least two elements ok 120 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 121 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/stringify.test.js)" ok 122 string ok 123 should be truthy ok 124 string ok 125 should be truthy ok 126 string ok 127 should be truthy ok 128 should be equivalent 1..128 # tests 128 # pass 128 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js' TAP version 13 # truncate transaction ok 1 should make a POST request ok 2 should send request to /intake/v2/events ok 3 should add secret token ok 4 should send reqeust as ndjson ok 5 should compress request ok 6 should expect json in response ok 7 should add proper User-Agent ok 8 should be equivalent ok 9 should be truthy ok 10 should be truthy ok 11 should be truthy ok 12 should be equal ok 13 should be equal ok 14 should be equal ok 15 should be truthy ok 16 should be equal ok 17 should be equal ok 18 should be equal ok 19 pid should be > 0, was 32903 ok 20 ppid should be > 0, was 32866 ok 21 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 22 process.title should be an array ok 23 process.title should contain at least two elements ok 24 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 25 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 26 string ok 27 should be truthy ok 28 string ok 29 should be truthy ok 30 string ok 31 should be truthy ok 32 should be equivalent # truncate span ok 33 should make a POST request ok 34 should send request to /intake/v2/events ok 35 should add secret token ok 36 should send reqeust as ndjson ok 37 should compress request ok 38 should expect json in response ok 39 should add proper User-Agent ok 40 should be equivalent ok 41 should be truthy ok 42 should be truthy ok 43 should be truthy ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be truthy ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 pid should be > 0, was 32903 ok 52 ppid should be > 0, was 32866 ok 53 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 54 process.title should be an array ok 55 process.title should contain at least two elements ok 56 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 57 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 58 string ok 59 should be truthy ok 60 string ok 61 should be truthy ok 62 string ok 63 should be truthy ok 64 should be equivalent # truncate span custom keys ok 65 should make a POST request ok 66 should send request to /intake/v2/events ok 67 should add secret token ok 68 should send reqeust as ndjson ok 69 should compress request ok 70 should expect json in response ok 71 should add proper User-Agent ok 72 should be equivalent ok 73 should be truthy ok 74 should be truthy ok 75 should be truthy ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be truthy ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 pid should be > 0, was 32903 ok 84 ppid should be > 0, was 32866 ok 85 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 86 process.title should be an array ok 87 process.title should contain at least two elements ok 88 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 89 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 90 string ok 91 should be truthy ok 92 string ok 93 should be truthy ok 94 string ok 95 should be truthy ok 96 should be equivalent # truncate error ok 97 should make a POST request ok 98 should send request to /intake/v2/events ok 99 should add secret token ok 100 should send reqeust as ndjson ok 101 should compress request ok 102 should expect json in response ok 103 should add proper User-Agent ok 104 should be equivalent ok 105 should be truthy ok 106 should be truthy ok 107 should be truthy ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be truthy ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 pid should be > 0, was 32903 ok 116 ppid should be > 0, was 32866 ok 117 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 118 process.title should be an array ok 119 process.title should contain at least two elements ok 120 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 121 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 122 string ok 123 should be truthy ok 124 string ok 125 should be truthy ok 126 string ok 127 should be truthy ok 128 should be equivalent # truncate metricset ok 129 should make a POST request ok 130 should send request to /intake/v2/events ok 131 should add secret token ok 132 should send reqeust as ndjson ok 133 should compress request ok 134 should expect json in response ok 135 should add proper User-Agent ok 136 should be equivalent ok 137 should be truthy ok 138 should be truthy ok 139 should be truthy ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be truthy ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 pid should be > 0, was 32903 ok 148 ppid should be > 0, was 32866 ok 149 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 150 process.title should be an array ok 151 process.title should contain at least two elements ok 152 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 153 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 154 string ok 155 should be truthy ok 156 string ok 157 should be truthy ok 158 string ok 159 should be truthy ok 160 should be equivalent # truncate transaction ok 161 should make a POST request ok 162 should send request to /intake/v2/events ok 163 should add secret token ok 164 should send reqeust as ndjson ok 165 should compress request ok 166 should expect json in response ok 167 should add proper User-Agent ok 168 should be equivalent ok 169 should be truthy ok 170 should be truthy ok 171 should be truthy ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be truthy ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 pid should be > 0, was 32903 ok 180 ppid should be > 0, was 32866 ok 181 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 182 process.title should be an array ok 183 process.title should contain at least two elements ok 184 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 185 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 186 string ok 187 should be truthy ok 188 string ok 189 should be truthy ok 190 string ok 191 should be truthy ok 192 should be equivalent # truncate span ok 193 should make a POST request ok 194 should send request to /intake/v2/events ok 195 should add secret token ok 196 should send reqeust as ndjson ok 197 should compress request ok 198 should expect json in response ok 199 should add proper User-Agent ok 200 should be equivalent ok 201 should be truthy ok 202 should be truthy ok 203 should be truthy ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be truthy ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 pid should be > 0, was 32903 ok 212 ppid should be > 0, was 32866 ok 213 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 214 process.title should be an array ok 215 process.title should contain at least two elements ok 216 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 217 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 218 string ok 219 should be truthy ok 220 string ok 221 should be truthy ok 222 string ok 223 should be truthy ok 224 should be equivalent # truncate span custom keys ok 225 should make a POST request ok 226 should send request to /intake/v2/events ok 227 should add secret token ok 228 should send reqeust as ndjson ok 229 should compress request ok 230 should expect json in response ok 231 should add proper User-Agent ok 232 should be equivalent ok 233 should be truthy ok 234 should be truthy ok 235 should be truthy ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be truthy ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 pid should be > 0, was 32903 ok 244 ppid should be > 0, was 32866 ok 245 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 246 process.title should be an array ok 247 process.title should contain at least two elements ok 248 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 249 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 250 string ok 251 should be truthy ok 252 string ok 253 should be truthy ok 254 string ok 255 should be truthy ok 256 should be equivalent # truncate error ok 257 should make a POST request ok 258 should send request to /intake/v2/events ok 259 should add secret token ok 260 should send reqeust as ndjson ok 261 should compress request ok 262 should expect json in response ok 263 should add proper User-Agent ok 264 should be equivalent ok 265 should be truthy ok 266 should be truthy ok 267 should be truthy ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be truthy ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 pid should be > 0, was 32903 ok 276 ppid should be > 0, was 32866 ok 277 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 278 process.title should be an array ok 279 process.title should contain at least two elements ok 280 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 281 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 282 string ok 283 should be truthy ok 284 string ok 285 should be truthy ok 286 string ok 287 should be truthy ok 288 should be equivalent # truncate metricset ok 289 should make a POST request ok 290 should send request to /intake/v2/events ok 291 should add secret token ok 292 should send reqeust as ndjson ok 293 should compress request ok 294 should expect json in response ok 295 should add proper User-Agent ok 296 should be equivalent ok 297 should be truthy ok 298 should be truthy ok 299 should be truthy ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be truthy ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 pid should be > 0, was 32903 ok 308 ppid should be > 0, was 32866 ok 309 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 310 process.title should be an array ok 311 process.title should contain at least two elements ok 312 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 313 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 314 string ok 315 should be truthy ok 316 string ok 317 should be truthy ok 318 string ok 319 should be truthy ok 320 should be equivalent # truncate transaction ok 321 should make a POST request ok 322 should send request to /intake/v2/events ok 323 should add secret token ok 324 should send reqeust as ndjson ok 325 should compress request ok 326 should expect json in response ok 327 should add proper User-Agent ok 328 should be equivalent ok 329 should be truthy ok 330 should be truthy ok 331 should be truthy ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be truthy ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 pid should be > 0, was 32903 ok 340 ppid should be > 0, was 32866 ok 341 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 342 process.title should be an array ok 343 process.title should contain at least two elements ok 344 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 345 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 346 string ok 347 should be truthy ok 348 string ok 349 should be truthy ok 350 string ok 351 should be truthy ok 352 should be equivalent # truncate span ok 353 should make a POST request ok 354 should send request to /intake/v2/events ok 355 should add secret token ok 356 should send reqeust as ndjson ok 357 should compress request ok 358 should expect json in response ok 359 should add proper User-Agent ok 360 should be equivalent ok 361 should be truthy ok 362 should be truthy ok 363 should be truthy ok 364 should be equal ok 365 should be equal ok 366 should be equal ok 367 should be truthy ok 368 should be equal ok 369 should be equal ok 370 should be equal ok 371 pid should be > 0, was 32903 ok 372 ppid should be > 0, was 32866 ok 373 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 374 process.title should be an array ok 375 process.title should contain at least two elements ok 376 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 377 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 378 string ok 379 should be truthy ok 380 string ok 381 should be truthy ok 382 string ok 383 should be truthy ok 384 should be equivalent # truncate span custom keys ok 385 should make a POST request ok 386 should send request to /intake/v2/events ok 387 should add secret token ok 388 should send reqeust as ndjson ok 389 should compress request ok 390 should expect json in response ok 391 should add proper User-Agent ok 392 should be equivalent ok 393 should be truthy ok 394 should be truthy ok 395 should be truthy ok 396 should be equal ok 397 should be equal ok 398 should be equal ok 399 should be truthy ok 400 should be equal ok 401 should be equal ok 402 should be equal ok 403 pid should be > 0, was 32903 ok 404 ppid should be > 0, was 32866 ok 405 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 406 process.title should be an array ok 407 process.title should contain at least two elements ok 408 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 409 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 410 string ok 411 should be truthy ok 412 string ok 413 should be truthy ok 414 string ok 415 should be truthy ok 416 should be equivalent # truncate error ok 417 should make a POST request ok 418 should send request to /intake/v2/events ok 419 should add secret token ok 420 should send reqeust as ndjson ok 421 should compress request ok 422 should expect json in response ok 423 should add proper User-Agent ok 424 should be equivalent ok 425 should be truthy ok 426 should be truthy ok 427 should be truthy ok 428 should be equal ok 429 should be equal ok 430 should be equal ok 431 should be truthy ok 432 should be equal ok 433 should be equal ok 434 should be equal ok 435 pid should be > 0, was 32903 ok 436 ppid should be > 0, was 32866 ok 437 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 438 process.title should be an array ok 439 process.title should contain at least two elements ok 440 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 441 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 442 string ok 443 should be truthy ok 444 string ok 445 should be truthy ok 446 string ok 447 should be truthy ok 448 should be equivalent # truncate metricset ok 449 should make a POST request ok 450 should send request to /intake/v2/events ok 451 should add secret token ok 452 should send reqeust as ndjson ok 453 should compress request ok 454 should expect json in response ok 455 should add proper User-Agent ok 456 should be equivalent ok 457 should be truthy ok 458 should be truthy ok 459 should be truthy ok 460 should be equal ok 461 should be equal ok 462 should be equal ok 463 should be truthy ok 464 should be equal ok 465 should be equal ok 466 should be equal ok 467 pid should be > 0, was 32903 ok 468 ppid should be > 0, was 32866 ok 469 process.title should match /(\/node|^node)$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 470 process.title should be an array ok 471 process.title should contain at least two elements ok 472 process.argv[0] should match /\/node$/ (was: /Users/jun.lin/.asdf/installs/nodejs/16.4.0/bin/node) ok 473 process.argv[1] should match /(\/test\/.*\.js|node_modules\/\.bin\/tape)$/ (was: /Users/jun.lin/Developer/apm-nodejs-http-client/test/truncate.test.js)" ok 474 string ok 475 should be truthy ok 476 string ok 477 should be truthy ok 478 string ok 479 should be truthy ok 480 should be equivalent # truncate cloud metadata ok 481 account.id.length was truncated ok 482 account.name.length was truncated ok 483 availability_zone was truncated ok 484 instance.id was truncated ok 485 instance.name was truncated ok 486 machine.type was truncated ok 487 project.id was truncated ok 488 project.name was truncated ok 489 provider was truncated ok 490 region was truncated # do not break surrogate pairs in truncation ok 491 context.db.statement was truncated ok 492 context.db.statement was truncated without breaking a surrogate pair 1..492 # tests 492 # pass 492 # ok # runnign 'node /Users/jun.lin/Developer/apm-nodejs-http-client/test/writev.test.js' TAP version 13 # bufferWindowSize - default value (span) ok 1 should be corked ok 2 should be corked ok 3 should be corked ok 4 should be corked ok 5 should be corked ok 6 should be corked ok 7 should be corked ok 8 should be corked ok 9 should be corked ok 10 should be corked ok 11 should be corked ok 12 should be corked ok 13 should be corked ok 14 should be corked ok 15 should be corked ok 16 should be corked ok 17 should be corked ok 18 should be corked ok 19 should be corked ok 20 should be corked ok 21 should be corked ok 22 should be corked ok 23 should be corked ok 24 should be corked ok 25 should be corked ok 26 should be corked ok 27 should be corked ok 28 should be corked ok 29 should be corked ok 30 should be corked ok 31 should be corked ok 32 should be corked ok 33 should be corked ok 34 should be corked ok 35 should be corked ok 36 should be corked ok 37 should be corked ok 38 should be corked ok 39 should be corked ok 40 should be corked ok 41 should be corked ok 42 should be corked ok 43 should be corked ok 44 should be corked ok 45 should be corked ok 46 should be corked ok 47 should be corked ok 48 should be corked ok 49 should be corked ok 50 should be corked ok 51 should be uncorked # bufferWindowSize - custom value (span) ok 52 should be corked ok 53 should be corked ok 54 should be corked ok 55 should be corked ok 56 should be corked ok 57 should be uncorked # bufferWindowTime - default value (span) ok 58 should be corked ok 59 should be uncorked # bufferWindowTime - custom value (span) ok 60 should be corked ok 61 should be corked ok 62 should be uncorked # write on destroyed (span) # bufferWindowSize - default value (transaction) ok 63 should be corked ok 64 should be corked ok 65 should be corked ok 66 should be corked ok 67 should be corked ok 68 should be corked ok 69 should be corked ok 70 should be corked ok 71 should be corked ok 72 should be corked ok 73 should be corked ok 74 should be corked ok 75 should be corked ok 76 should be corked ok 77 should be corked ok 78 should be corked ok 79 should be corked ok 80 should be corked ok 81 should be corked ok 82 should be corked ok 83 should be corked ok 84 should be corked ok 85 should be corked ok 86 should be corked ok 87 should be corked ok 88 should be corked ok 89 should be corked ok 90 should be corked ok 91 should be corked ok 92 should be corked ok 93 should be corked ok 94 should be corked ok 95 should be corked ok 96 should be corked ok 97 should be corked ok 98 should be corked ok 99 should be corked ok 100 should be corked ok 101 should be corked ok 102 should be corked ok 103 should be corked ok 104 should be corked ok 105 should be corked ok 106 should be corked ok 107 should be corked ok 108 should be corked ok 109 should be corked ok 110 should be corked ok 111 should be corked ok 112 should be corked ok 113 should be uncorked # bufferWindowSize - custom value (transaction) ok 114 should be corked ok 115 should be corked ok 116 should be corked ok 117 should be corked ok 118 should be corked ok 119 should be uncorked # bufferWindowTime - default value (transaction) ok 120 should be corked ok 121 should be uncorked # bufferWindowTime - custom value (transaction) ok 122 should be corked ok 123 should be corked ok 124 should be uncorked # write on destroyed (transaction) # bufferWindowSize - default value (error) ok 125 should be corked ok 126 should be corked ok 127 should be corked ok 128 should be corked ok 129 should be corked ok 130 should be corked ok 131 should be corked ok 132 should be corked ok 133 should be corked ok 134 should be corked ok 135 should be corked ok 136 should be corked ok 137 should be corked ok 138 should be corked ok 139 should be corked ok 140 should be corked ok 141 should be corked ok 142 should be corked ok 143 should be corked ok 144 should be corked ok 145 should be corked ok 146 should be corked ok 147 should be corked ok 148 should be corked ok 149 should be corked ok 150 should be corked ok 151 should be corked ok 152 should be corked ok 153 should be corked ok 154 should be corked ok 155 should be corked ok 156 should be corked ok 157 should be corked ok 158 should be corked ok 159 should be corked ok 160 should be corked ok 161 should be corked ok 162 should be corked ok 163 should be corked ok 164 should be corked ok 165 should be corked ok 166 should be corked ok 167 should be corked ok 168 should be corked ok 169 should be corked ok 170 should be corked ok 171 should be corked ok 172 should be corked ok 173 should be corked ok 174 should be corked ok 175 should be uncorked # bufferWindowSize - custom value (error) ok 176 should be corked ok 177 should be corked ok 178 should be corked ok 179 should be corked ok 180 should be corked ok 181 should be uncorked # bufferWindowTime - default value (error) ok 182 should be corked ok 183 should be uncorked # bufferWindowTime - custom value (error) ok 184 should be corked ok 185 should be corked ok 186 should be uncorked # write on destroyed (error) 1..186 # tests 186 # pass 186 # ok ----------------------------|----------|----------|----------|----------|-------------------| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | ----------------------------|----------|----------|----------|----------|-------------------| All files | 92.94 | 89.66 | 89.39 | 92.97 | | apm-nodejs-http-client | 92.6 | 88.35 | 89.32 | 92.66 | | index.js | 92.6 | 88.35 | 89.32 | 92.66 |... 1539,1555,1585 | apm-nodejs-http-client/lib | 94.38 | 93.29 | 89.66 | 94.25 | | container-info.js | 100 | 80 | 100 | 100 | 16 | logging.js | 100 | 100 | 62.5 | 100 | | ndjson.js | 100 | 50 | 100 | 100 | 6 | truncate.js | 93.79 | 94.37 | 100 | 93.67 |... 49,360,377,379 | ----------------------------|----------|----------|----------|----------|-------------------| ➜ apm-nodejs-http-client (patch-1) ✔ ```
astorm commented 2 years ago

jenkins run the tests please

linjunpop commented 2 years ago

Hi @astorm ,

Looks like all tests have passed, would you plz review? Thanks.

trentm commented 1 year ago

@linjunpop Thank you very much for this PR. I am sorry we did not respond in a timely manner. In https://github.com/elastic/apm-agent-nodejs/pull/3507 we moved the APM http-client (this repo) to the APM agent repo at https://github.com/elastic/apm-agent-nodejs. I've adapted your patch to a new PR at https://github.com/elastic/apm-agent-nodejs/pull/3549

linjunpop commented 1 year ago

Thank you @trentm