Skip to content

fix(metrics): never emit runtime_http_* samples without a handler label - #673

Merged
juliobguedes merged 5 commits into
masterfrom
fix/metrics-undefined-handler-label
Aug 27, 2026
Merged

fix(metrics): never emit runtime_http_* samples without a handler label#673
juliobguedes merged 5 commits into
masterfrom
fix/metrics-undefined-handler-label

chore(changelog): document handler label fixes

9581066
Select commit
Loading
Failed to load commit list.
DK CICD / node-vtex-api-node-ci-v2-hf9091zj-scan succeeded Aug 3, 2026 in 55s

node-vtex-api-node-ci-v2-hf9091zj-scan

Progress summary:

Step Status
create-project-at-sonarcloud 🟢 completed
scan 🟢 completed

⚠️ A completed status for an individual step simply indicates it completed. Errors might have happened: check the overall status of the Check Run and, if necessary, the logs below.

Details

Runner: node-ci-v2-hf9091zj-scan-pod

create-project-at-sonarcloud logs (access task pipeline | access task only)

fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
v3.17.10-127-g3518e0bee31 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
v3.17.10-127-g3518e0bee31 [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
OK: 17833 distinct packages available
(1/5) Installing ca-certificates (20240226-r0)
(2/5) Installing brotli-libs (1.0.9-r9)
(3/5) Installing nghttp2-libs (1.51.0-r2)
(4/5) Installing libcurl (8.9.0-r0)
(5/5) Installing curl (8.9.0-r0)
Executing busybox-1.35.0-r29.trigger
Executing ca-certificates-20240226-r0.trigger
OK: 301 MiB in 50 packages
Creating project at self-hosted SonarQube
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   174    0   124  100    50   3652   1472 --:--:-- --:--:-- --:--:--  5272
Project created: {"errors":[{"msg":"Could not create Project with key: \"node-vtex-api\". A similar key already exists: \"node-vtex-api\""}]}
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   128    0     0  100   128      0   4443 --:--:-- --:--:-- --:--:--  4571
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   209    0   209    0     0   6927      0 --:--:-- --:--:-- --:--:--  6966
Project bind success: {"key":"Sonar - Workflows","alm":"github","repository":"vtex/node-vtex-api","url":"https://api.github.com","summaryCommentEnabled":true,"monorepo":false,"repositoryUrl":"https://github.com/vtex/node-vtex-api"}


scan logs (access task pipeline | access task only)

WARN:   * src/errors/customGraphQLError.ts
WARN:   * src/service/worker/runtime/Service.ts
WARN:   * src/caches/LRUCache.ts
WARN:   * src/service/worker/runtime/http/router.ts
WARN:   * src/errors/index.ts
WARN:   * jest.config.js
WARN:   * src/clients/janus/index.ts
WARN:   * src/service/worker/runtime/graphql/utils/translations.ts
WARN:   * src/service/logger/metricsLogger.ts
WARN:   * src/clients/infra/Sphinx.ts
WARN:   * src/utils/binding.ts
WARN:   * src/clients/infra/InfraClient.ts
WARN:   * src/HttpClient/middlewares/cache.ts
WARN:   * src/service/worker/runtime/graphql/middlewares/query.ts
WARN:   * src/errors/TooManyRequestsError.ts
WARN:   * src/clients/janus/JanusClient.ts
WARN:   * src/utils/error.ts
WARN:   * src/service/worker/runtime/method.ts
WARN:   * src/service/worker/runtime/events/index.ts
WARN: This may lead to missing/broken features in SonarQube
INFO: CPD Executor 37 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 162 files
INFO: CPD Executor CPD calculation finished (done) | time=27ms
INFO: SCM revision ID '95810664016008f083b35866c4f05245380f454d'
INFO: Load New Code definition
INFO: Load New Code definition (done) | time=23ms
INFO: Analysis report generated in 105ms, dir size=1.6 MB
INFO: Analysis report compressed in 226ms, zip size=966.9 kB
INFO: Analysis report uploaded in 213ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: http://sonarqube.vtex.systems/dashboard?id=node-vtex-api&branch=fix%2Fmetrics-undefined-handler-label
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://sonarqube.vtex.systems/api/ce/task?id=b04a4189-2f3b-486c-9ee8-0134abb0946b
INFO: Analysis total time: 20.094 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 21.447s
INFO: Final Memory: 17M/74M
INFO: ------------------------------------------------------------------------