Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: open-telemetry/opentelemetry-js-contrib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1eb77007669bae87fe5664d68ba6533b95275d52
Choose a base ref
...
head repository: open-telemetry/opentelemetry-js-contrib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 32abc4c3c01d0e78e10022c74b6805b06e0e1fe7
Choose a head ref
  • 15 commits
  • 258 files changed
  • 10 contributors

Commits on Feb 20, 2025

  1. fix(deps): update otel core experimental to ^0.57.2 (#2716)

    renovate-bot authored Feb 20, 2025

    Partially verified

    This commit is signed with the committer’s verified signature. The key has expired.
    6543’s contribution has been verified via GPG key.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    d2a9a20 View commit details
  2. Copy the full SHA
    3fc62be View commit details

Commits on Feb 24, 2025

  1. feat(deps): lock file maintenance (#2730)

    renovate-bot authored Feb 24, 2025
    Copy the full SHA
    2a18b76 View commit details
  2. chore(deps): update all patch versions (#2729)

    renovate-bot authored Feb 24, 2025
    Copy the full SHA
    9c50e96 View commit details
  3. chore(deps): update dependency @types/sinon to v17 (#2727)

    renovate-bot authored Feb 24, 2025
    Copy the full SHA
    81439d8 View commit details
  4. chore(deps): update dependency @types/mocha to v10 (#2717)

    renovate-bot authored Feb 24, 2025
    Copy the full SHA
    675ec97 View commit details

Commits on Feb 26, 2025

  1. test(instrumentation-winston): Include all versions in coverage (#2684)

    Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
    Co-authored-by: Amir Blum <amirgiraffe@gmail.com>
    3 people authored Feb 26, 2025
    Copy the full SHA
    9e7e7ff View commit details
  2. ci: do not mark mongodb/mysql2 as unmaintained (#2733)

    pichlermarc authored Feb 26, 2025
    Copy the full SHA
    197ee04 View commit details
  3. chore(runtime-node): use mocha dep from monorepo package.json (#2731)

    blumamir authored Feb 26, 2025
    Copy the full SHA
    b947650 View commit details
  4. feat(instrumentation-express)!: propagate context and measure full ha…

    …ndler spans (#2638)
    raphael-theriault-swi authored Feb 26, 2025
    Copy the full SHA
    353dbb0 View commit details

Commits on Feb 28, 2025

  1. fix(instrumentation-pg): connection string parsing (#2715)

    nikmel2803 authored Feb 28, 2025
    Copy the full SHA
    b520d04 View commit details

Commits on Mar 13, 2025

  1. fix(instrumentation-aws-lambda): Change endSpan error-logs for forcef…

    …lush into debug-logs (#2753)
    jj22ee authored Mar 13, 2025
    Copy the full SHA
    4b51e60 View commit details

Commits on Mar 14, 2025

  1. test(instrumentation-aws-sdk): update devDeps to modern version of in…

    …strumented packages (#2723)
    
    This flips the usage of 'npm test' and 'npm run test-all-versions' so that
    the former uses recent versions of the instrumented packages. This allows
    updating devDeps to the latest. 'npm test' will skip tests for older
    versions of node that aren't supported by the latest version of the
    instrumented packages.
    
    Testing all the old versions (of node and instrumented packages) is
    left to 'npm run test-all-versions' (TAV).
    
    Refs: #2722
    trentm authored Mar 14, 2025
    Copy the full SHA
    8e08755 View commit details

Commits on Mar 18, 2025

  1. chore!: update to JS SDK 2.x (#2738)

    Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
    trentm and pichlermarc authored Mar 18, 2025
    Copy the full SHA
    7fb4ba3 View commit details
  2. chore: release main (#2726)

    Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
    Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
    3 people authored Mar 18, 2025
    Copy the full SHA
    32abc4c View commit details
Showing with 10,714 additions and 14,312 deletions.
  1. +0 −2 .github/component-label-map.yml
  2. +1 −4 .github/workflows/test-all-versions.yml
  3. +7 −5 .github/workflows/unit-test.yml
  4. +64 −64 .release-please-manifest.json
  5. +21 −0 detectors/node/opentelemetry-resource-detector-alibaba-cloud/CHANGELOG.md
  6. +9 −8 detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json
  7. +53 −32 ...ctors/node/opentelemetry-resource-detector-alibaba-cloud/src/detectors/AlibabaCloudEcsDetector.ts
  8. +48 −5 ...node/opentelemetry-resource-detector-alibaba-cloud/test/detectors/AlibabaCloudEcsDetector.test.ts
  9. +2 −2 ...lemetry-resource-detector-alibaba-cloud/test/detectors/AlibabaCloudEcsDetectorIntegration.test.ts
  10. +34 −0 detectors/node/opentelemetry-resource-detector-aws/CHANGELOG.md
  11. +11 −10 detectors/node/opentelemetry-resource-detector-aws/package.json
  12. +88 −10 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsBeanstalkDetector.ts
  13. +0 −114 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsBeanstalkDetectorSync.ts
  14. +163 −12 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsEc2Detector.ts
  15. +0 −178 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsEc2DetectorSync.ts
  16. +277 −8 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsEcsDetector.ts
  17. +0 −281 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsEcsDetectorSync.ts
  18. +215 −11 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsEksDetector.ts
  19. +0 −244 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsEksDetectorSync.ts
  20. +52 −9 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetector.ts
  21. +0 −81 detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetectorSync.ts
  22. +4 −18 detectors/node/opentelemetry-resource-detector-aws/src/detectors/index.ts
  23. +7 −1 detectors/node/opentelemetry-resource-detector-aws/src/index.ts
  24. +15 −13 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsBeanstalkDetector.test.ts
  25. +0 −125 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsBeanstalkDetectorSync.test.ts
  26. +12 −12 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsEc2Detector.test.ts
  27. +0 −152 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsEc2DetectorSync.test.ts
  28. +22 −20 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsEcsDetector.test.ts
  29. +0 −453 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsEcsDetectorSync.test.ts
  30. +38 −40 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsEksDetector.test.ts
  31. +0 −307 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsEksDetectorSync.test.ts
  32. +54 −17 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsLambdaDetector.test.ts
  33. +0 −101 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsLambdaDetectorSync.test.ts
  34. +13 −13 detectors/node/opentelemetry-resource-detector-aws/test/detectors/AwsSuppressTracing.test.ts
  35. +26 −0 detectors/node/opentelemetry-resource-detector-azure/CHANGELOG.md
  36. +1 −1 detectors/node/opentelemetry-resource-detector-azure/README.md
  37. +10 −9 detectors/node/opentelemetry-resource-detector-azure/package.json
  38. +4 −4 detectors/node/opentelemetry-resource-detector-azure/src/detectors/AzureAppServiceDetector.ts
  39. +4 −5 detectors/node/opentelemetry-resource-detector-azure/src/detectors/AzureFunctionsDetector.ts
  40. +87 −60 detectors/node/opentelemetry-resource-detector-azure/src/detectors/AzureVmDetector.ts
  41. +4 −4 detectors/node/opentelemetry-resource-detector-azure/test/detectors/AzureAppServiceDetector.test.ts
  42. +4 −4 detectors/node/opentelemetry-resource-detector-azure/test/detectors/AzureFunctionsDetector.test.ts
  43. +5 −9 detectors/node/opentelemetry-resource-detector-azure/test/detectors/AzureVmDetector.test.ts
  44. +23 −0 detectors/node/opentelemetry-resource-detector-container/CHANGELOG.md
  45. +1 −1 detectors/node/opentelemetry-resource-detector-container/README.md
  46. +10 −9 detectors/node/opentelemetry-resource-detector-container/package.json
  47. +13 −35 detectors/node/opentelemetry-resource-detector-container/src/detectors/ContainerDetector.ts
  48. +1 −1 detectors/node/opentelemetry-resource-detector-container/src/detectors/index.ts
  49. +1 −1 detectors/node/opentelemetry-resource-detector-container/src/index.ts
  50. +11 −10 detectors/node/opentelemetry-resource-detector-container/test/ContainerDetector.test.ts
  51. +2 −2 detectors/node/opentelemetry-resource-detector-container/test/ContainerDetectorIntegration.test.ts
  52. +26 −0 detectors/node/opentelemetry-resource-detector-gcp/CHANGELOG.md
  53. +9 −8 detectors/node/opentelemetry-resource-detector-gcp/package.json
  54. +62 −50 detectors/node/opentelemetry-resource-detector-gcp/src/detectors/GcpDetector.ts
  55. +1 −1 detectors/node/opentelemetry-resource-detector-gcp/src/detectors/index.ts
  56. +1 −1 detectors/node/opentelemetry-resource-detector-gcp/src/index.ts
  57. +8 −6 detectors/node/opentelemetry-resource-detector-gcp/test/detectors/GcpDetector.test.ts
  58. +2 −2 detectors/node/opentelemetry-resource-detector-gcp/test/detectors/GcpDetectorIntegration.test.ts
  59. +14 −0 detectors/node/opentelemetry-resource-detector-github/CHANGELOG.md
  60. +6 −6 detectors/node/opentelemetry-resource-detector-github/package.json
  61. +16 −47 detectors/node/opentelemetry-resource-detector-github/src/detectors/GitHubDetector.ts
  62. +4 −2 detectors/node/opentelemetry-resource-detector-github/test/detectors/GitHubDetector.test.ts
  63. +30 −0 detectors/node/opentelemetry-resource-detector-instana/CHANGELOG.md
  64. +1 −7 detectors/node/opentelemetry-resource-detector-instana/README.md
  65. +8 −7 detectors/node/opentelemetry-resource-detector-instana/package.json
  66. +25 −9 detectors/node/opentelemetry-resource-detector-instana/src/detectors/InstanaAgentDetector.ts
  67. +1 −1 detectors/node/opentelemetry-resource-detector-instana/src/detectors/index.ts
  68. +1 −1 detectors/node/opentelemetry-resource-detector-instana/src/index.ts
  69. +4 −23 ...ors/node/opentelemetry-resource-detector-instana/test/InstanaAgentDetectorIntegrationTest.test.ts
  70. +6 −5 detectors/node/opentelemetry-resource-detector-instana/test/InstanaAgentDetectorUnitTest.test.ts
  71. +5 −3 examples/bunyan/app.js
  72. +3 −3 examples/bunyan/package.json
  73. +11 −9 examples/bunyan/telemetry.js
  74. +1 −1 examples/express/package.json
  75. +1 −1 examples/koa/package.json
  76. +1 −1 examples/mysql/package.json
  77. +1 −1 examples/redis/package.json
  78. +3 −3 incubator/opentelemetry-sampler-aws-xray/package.json
  79. +23 −0 metapackages/auto-configuration-propagators/CHANGELOG.md
  80. +11 −11 metapackages/auto-configuration-propagators/package.json
  81. +67 −0 metapackages/auto-instrumentations-node/CHANGELOG.md
  82. +2 −2 metapackages/auto-instrumentations-node/README.md
  83. +52 −52 metapackages/auto-instrumentations-node/package.json
  84. +13 −14 metapackages/auto-instrumentations-node/src/utils.ts
  85. +1 −2 metapackages/auto-instrumentations-node/test/register.test.ts
  86. +3 −3 metapackages/auto-instrumentations-node/test/utils.test.ts
  87. +27 −0 metapackages/auto-instrumentations-web/CHANGELOG.md
  88. +10 −10 metapackages/auto-instrumentations-web/package.json
  89. +6,201 −10,618 package-lock.json
  90. +1 −1 package.json
  91. +14 −0 packages/baggage-span-processor/CHANGELOG.md
  92. +5 −5 packages/baggage-span-processor/package.json
  93. +14 −0 packages/opentelemetry-host-metrics/CHANGELOG.md
  94. +6 −6 packages/opentelemetry-host-metrics/package.json
  95. +14 −0 packages/opentelemetry-id-generator-aws-xray/CHANGELOG.md
  96. +6 −6 packages/opentelemetry-id-generator-aws-xray/package.json
  97. +1 −1 packages/opentelemetry-id-generator-aws-xray/src/platform/browser/AWSXRayIdGenerator.ts
  98. +1 −1 packages/opentelemetry-id-generator-aws-xray/src/platform/node/AWSXRayIdGenerator.ts
  99. +21 −0 packages/opentelemetry-propagation-utils/CHANGELOG.md
  100. +6 −6 packages/opentelemetry-propagation-utils/package.json
  101. +14 −0 packages/opentelemetry-redis-common/CHANGELOG.md
  102. +4 −4 packages/opentelemetry-redis-common/package.json
  103. +14 −0 packages/opentelemetry-sql-common/CHANGELOG.md
  104. +5 −5 packages/opentelemetry-sql-common/package.json
  105. +19 −0 packages/opentelemetry-test-utils/CHANGELOG.md
  106. +11 −11 packages/opentelemetry-test-utils/package.json
  107. +3 −2 packages/opentelemetry-test-utils/src/instrumentations/index.ts
  108. +4 −1 packages/opentelemetry-test-utils/src/test-utils.ts
  109. +19 −0 packages/winston-transport/CHANGELOG.md
  110. +6 −6 packages/winston-transport/package.json
  111. +26 −0 plugins/node/instrumentation-amqplib/CHANGELOG.md
  112. +8 −8 plugins/node/instrumentation-amqplib/package.json
  113. +4 −4 plugins/node/instrumentation-amqplib/test/amqplib-callbacks.test.ts
  114. +7 −7 plugins/node/instrumentation-amqplib/test/amqplib-promise.test.ts
  115. +19 −0 plugins/node/instrumentation-cucumber/CHANGELOG.md
  116. +9 −9 plugins/node/instrumentation-cucumber/package.json
  117. +6 −4 plugins/node/instrumentation-cucumber/test/cucumber.test.ts
  118. +19 −0 plugins/node/instrumentation-dataloader/CHANGELOG.md
  119. +8 −8 plugins/node/instrumentation-dataloader/package.json
  120. +5 −5 plugins/node/instrumentation-dataloader/test/dataloader.test.ts
  121. +19 −0 plugins/node/instrumentation-fs/CHANGELOG.md
  122. +11 −11 plugins/node/instrumentation-fs/package.json
  123. +1 −1 plugins/node/instrumentation-fs/test/utils.ts
  124. +26 −0 plugins/node/instrumentation-kafkajs/CHANGELOG.md
  125. +8 −8 plugins/node/instrumentation-kafkajs/package.json
  126. +7 −7 plugins/node/instrumentation-kafkajs/test/kafkajs.test.ts
  127. +26 −0 plugins/node/instrumentation-lru-memoizer/CHANGELOG.md
  128. +6 −6 plugins/node/instrumentation-lru-memoizer/package.json
  129. +26 −0 plugins/node/instrumentation-mongoose/CHANGELOG.md
  130. +8 −8 plugins/node/instrumentation-mongoose/package.json
  131. +19 −0 plugins/node/instrumentation-runtime-node/CHANGELOG.md
  132. +5 −6 plugins/node/instrumentation-runtime-node/package.json
  133. +26 −0 plugins/node/instrumentation-socket.io/CHANGELOG.md
  134. +7 −7 plugins/node/instrumentation-socket.io/package.json
  135. +26 −0 plugins/node/instrumentation-tedious/CHANGELOG.md
  136. +8 −8 plugins/node/instrumentation-tedious/package.json
  137. +1 −1 plugins/node/instrumentation-tedious/test/instrumentation.test.ts
  138. +19 −0 plugins/node/instrumentation-undici/CHANGELOG.md
  139. +9 −9 plugins/node/instrumentation-undici/package.json
  140. +3 −2 plugins/node/instrumentation-undici/src/undici.ts
  141. +28 −0 plugins/node/opentelemetry-instrumentation-aws-lambda/CHANGELOG.md
  142. +11 −11 plugins/node/opentelemetry-instrumentation-aws-lambda/package.json
  143. +4 −4 plugins/node/opentelemetry-instrumentation-aws-lambda/src/instrumentation.ts
  144. +27 −18 plugins/node/opentelemetry-instrumentation-aws-lambda/test/integrations/lambda-handler.test.ts
  145. +29 −7 plugins/node/opentelemetry-instrumentation-aws-sdk/.tav.yml
  146. +28 −0 plugins/node/opentelemetry-instrumentation-aws-sdk/CHANGELOG.md
  147. +18 −18 plugins/node/opentelemetry-instrumentation-aws-sdk/package.json
  148. +1 −1 plugins/node/opentelemetry-instrumentation-aws-sdk/test/aws-sdk-v2.test.ts
  149. +3 −197 plugins/node/opentelemetry-instrumentation-aws-sdk/test/{aws-sdk-v3.test.ts → aws-sdk-v3-s3.test.ts}
  150. +231 −0 plugins/node/opentelemetry-instrumentation-aws-sdk/test/aws-sdk-v3-sqs.test.ts
  151. +4 −0 plugins/node/opentelemetry-instrumentation-aws-sdk/test/s3.test.ts
  152. +13 −9 plugins/node/opentelemetry-instrumentation-aws-sdk/test/sqs.test.ts
  153. +19 −0 plugins/node/opentelemetry-instrumentation-bunyan/CHANGELOG.md
  154. +11 −11 plugins/node/opentelemetry-instrumentation-bunyan/package.json
  155. +2 −2 plugins/node/opentelemetry-instrumentation-bunyan/test/bunyan.test.ts
  156. +26 −0 plugins/node/opentelemetry-instrumentation-cassandra/CHANGELOG.md
  157. +10 −10 plugins/node/opentelemetry-instrumentation-cassandra/package.json
  158. +19 −0 plugins/node/opentelemetry-instrumentation-connect/CHANGELOG.md
  159. +9 −9 plugins/node/opentelemetry-instrumentation-connect/package.json
  160. +1 −1 plugins/node/opentelemetry-instrumentation-connect/test/instrumentation.test.ts
  161. +19 −0 plugins/node/opentelemetry-instrumentation-dns/CHANGELOG.md
  162. +9 −9 plugins/node/opentelemetry-instrumentation-dns/package.json
  163. +32 −0 plugins/node/opentelemetry-instrumentation-express/CHANGELOG.md
  164. +11 −11 plugins/node/opentelemetry-instrumentation-express/package.json
  165. +11 −5 plugins/node/opentelemetry-instrumentation-express/src/instrumentation.ts
  166. +2 −2 plugins/node/opentelemetry-instrumentation-express/test/express.test.ts
  167. +26 −0 plugins/node/opentelemetry-instrumentation-fastify/CHANGELOG.md
  168. +11 −11 plugins/node/opentelemetry-instrumentation-fastify/package.json
  169. +33 −9 plugins/node/opentelemetry-instrumentation-fastify/test/instrumentation.test.ts
  170. +19 −0 plugins/node/opentelemetry-instrumentation-generic-pool/CHANGELOG.md
  171. +8 −8 plugins/node/opentelemetry-instrumentation-generic-pool/package.json
  172. +4 −1 plugins/node/opentelemetry-instrumentation-generic-pool/test/index.test.ts
  173. +19 −0 plugins/node/opentelemetry-instrumentation-graphql/CHANGELOG.md
  174. +6 −6 plugins/node/opentelemetry-instrumentation-graphql/package.json
  175. +69 −21 plugins/node/opentelemetry-instrumentation-graphql/test/graphql.test.ts
  176. +1 −1 plugins/node/opentelemetry-instrumentation-graphql/test/helper.ts
  177. +26 −0 plugins/node/opentelemetry-instrumentation-hapi/CHANGELOG.md
  178. +10 −10 plugins/node/opentelemetry-instrumentation-hapi/package.json
  179. +1 −1 plugins/node/opentelemetry-instrumentation-hapi/test/hapi.test.ts
  180. +28 −0 plugins/node/opentelemetry-instrumentation-ioredis/CHANGELOG.md
  181. +11 −11 plugins/node/opentelemetry-instrumentation-ioredis/package.json
  182. +19 −0 plugins/node/opentelemetry-instrumentation-knex/CHANGELOG.md
  183. +8 −8 plugins/node/opentelemetry-instrumentation-knex/package.json
  184. +1 −1 plugins/node/opentelemetry-instrumentation-knex/test/index.test.ts
  185. +26 −0 plugins/node/opentelemetry-instrumentation-koa/CHANGELOG.md
  186. +12 −12 plugins/node/opentelemetry-instrumentation-koa/package.json
  187. +1 −1 plugins/node/opentelemetry-instrumentation-koa/test/koa.test.ts
  188. +26 −0 plugins/node/opentelemetry-instrumentation-memcached/CHANGELOG.md
  189. +9 −9 plugins/node/opentelemetry-instrumentation-memcached/package.json
  190. +1 −1 plugins/node/opentelemetry-instrumentation-memcached/test/index.test.ts
  191. +26 −0 plugins/node/opentelemetry-instrumentation-mongodb/CHANGELOG.md
  192. +10 −10 plugins/node/opentelemetry-instrumentation-mongodb/package.json
  193. +2 −2 plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts
  194. +1 −1 plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v3.test.ts
  195. +4 −2 plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4.test.ts
  196. +4 −2 plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5-v6.test.ts
  197. +26 −0 plugins/node/opentelemetry-instrumentation-mysql/CHANGELOG.md
  198. +10 −10 plugins/node/opentelemetry-instrumentation-mysql/package.json
  199. +1 −1 plugins/node/opentelemetry-instrumentation-mysql/src/instrumentation.ts
  200. +1 −1 plugins/node/opentelemetry-instrumentation-mysql/test/index.test.ts
  201. +28 −0 plugins/node/opentelemetry-instrumentation-mysql2/CHANGELOG.md
  202. +9 −9 plugins/node/opentelemetry-instrumentation-mysql2/package.json
  203. +18 −2 plugins/node/opentelemetry-instrumentation-mysql2/test/mysql.test.ts
  204. +19 −0 plugins/node/opentelemetry-instrumentation-nestjs-core/CHANGELOG.md
  205. +9 −9 plugins/node/opentelemetry-instrumentation-nestjs-core/package.json
  206. +6 −5 plugins/node/opentelemetry-instrumentation-nestjs-core/test/index.test.ts
  207. +19 −0 plugins/node/opentelemetry-instrumentation-net/CHANGELOG.md
  208. +9 −9 plugins/node/opentelemetry-instrumentation-net/package.json
  209. +4 −1 plugins/node/opentelemetry-instrumentation-net/test/utils.ts
  210. +29 −0 plugins/node/opentelemetry-instrumentation-pg/CHANGELOG.md
  211. +12 −12 plugins/node/opentelemetry-instrumentation-pg/package.json
  212. +3 −3 plugins/node/opentelemetry-instrumentation-pg/src/instrumentation.ts
  213. +1 −0 plugins/node/opentelemetry-instrumentation-pg/src/internal-types.ts
  214. +35 −5 plugins/node/opentelemetry-instrumentation-pg/src/utils.ts
  215. +31 −1 plugins/node/opentelemetry-instrumentation-pg/test/pg-pool.test.ts
  216. +44 −0 plugins/node/opentelemetry-instrumentation-pg/test/utils.test.ts
  217. +26 −0 plugins/node/opentelemetry-instrumentation-pino/CHANGELOG.md
  218. +11 −11 plugins/node/opentelemetry-instrumentation-pino/package.json
  219. +4 −4 plugins/node/opentelemetry-instrumentation-pino/src/log-sending-utils.ts
  220. +2 −2 plugins/node/opentelemetry-instrumentation-pino/test/pino.test.ts
  221. +28 −0 plugins/node/opentelemetry-instrumentation-redis-4/CHANGELOG.md
  222. +11 −11 plugins/node/opentelemetry-instrumentation-redis-4/package.json
  223. +28 −0 plugins/node/opentelemetry-instrumentation-redis/CHANGELOG.md
  224. +10 −10 plugins/node/opentelemetry-instrumentation-redis/package.json
  225. +19 −0 plugins/node/opentelemetry-instrumentation-restify/CHANGELOG.md
  226. +9 −9 plugins/node/opentelemetry-instrumentation-restify/package.json
  227. +19 −0 plugins/node/opentelemetry-instrumentation-router/CHANGELOG.md
  228. +8 −8 plugins/node/opentelemetry-instrumentation-router/package.json
  229. +1 −1 plugins/node/opentelemetry-instrumentation-router/test/index.test.ts
  230. +26 −0 plugins/node/opentelemetry-instrumentation-winston/CHANGELOG.md
  231. +16 −13 plugins/node/opentelemetry-instrumentation-winston/package.json
  232. +19 −0 plugins/web/opentelemetry-instrumentation-document-load/CHANGELOG.md
  233. +9 −9 plugins/web/opentelemetry-instrumentation-document-load/package.json
  234. +23 −14 plugins/web/opentelemetry-instrumentation-document-load/test/documentLoad.test.ts
  235. +19 −0 plugins/web/opentelemetry-instrumentation-long-task/CHANGELOG.md
  236. +9 −9 plugins/web/opentelemetry-instrumentation-long-task/package.json
  237. +19 −0 plugins/web/opentelemetry-instrumentation-user-interaction/CHANGELOG.md
  238. +11 −11 plugins/web/opentelemetry-instrumentation-user-interaction/package.json
  239. +1 −1 plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts
  240. +10 −10 plugins/web/opentelemetry-instrumentation-user-interaction/test/userInteraction.nozone.test.ts
  241. +9 −9 plugins/web/opentelemetry-instrumentation-user-interaction/test/userInteraction.test.ts
  242. +19 −0 plugins/web/opentelemetry-plugin-react-load/CHANGELOG.md
  243. +10 −10 plugins/web/opentelemetry-plugin-react-load/package.json
  244. +19 −19 plugins/web/opentelemetry-plugin-react-load/test/BaseOpenTelemetryComponent.test.ts
  245. +14 −0 propagators/opentelemetry-propagator-instana/CHANGELOG.md
  246. +5 −5 propagators/opentelemetry-propagator-instana/package.json
  247. +14 −0 propagators/opentelemetry-propagator-ot-trace/CHANGELOG.md
  248. +5 −5 propagators/opentelemetry-propagator-ot-trace/package.json
  249. +21 −0 propagators/propagator-aws-xray-lambda/CHANGELOG.md
  250. +7 −7 propagators/propagator-aws-xray-lambda/package.json
  251. +14 −0 propagators/propagator-aws-xray/CHANGELOG.md
  252. +7 −7 propagators/propagator-aws-xray/package.json
  253. +213 −0 scripts/gen-semconv-ts.js
  254. +56 −0 scripts/skip-test-if.js
  255. +0 −6 tsconfig.base.es5.json
  256. +3 −3 tsconfig.base.esm.json
  257. +2 −2 tsconfig.base.esnext.json
  258. +6 −4 tsconfig.base.json
2 changes: 0 additions & 2 deletions .github/component-label-map.yml
Original file line number Diff line number Diff line change
@@ -297,9 +297,7 @@ pkg-status:unmaintained:
- plugins/node/opentelemetry-instrumentation-knex/**
- plugins/node/opentelemetry-instrumentation-koa/**
- plugins/node/opentelemetry-instrumentation-memcached/**
- plugins/node/opentelemetry-instrumentation-mongodb/**
- plugins/node/opentelemetry-instrumentation-mysql/**
- plugins/node/opentelemetry-instrumentation-mysql2/**
- plugins/node/opentelemetry-instrumentation-nestjs-core/**
- plugins/node/opentelemetry-instrumentation-restify/**
- plugins/node/opentelemetry-instrumentation-router/**
5 changes: 1 addition & 4 deletions .github/workflows/test-all-versions.yml
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14", "16", "18", "20", "22"]
node: ["18", "20", "22"]
runs-on: ubuntu-latest
services:
mongo:
@@ -143,9 +143,6 @@ jobs:
node-version: ${{ matrix.node }}
- name: Set MySQL variables
run: mysql --user=root --password=${MYSQL_ROOT_PASSWORD} --host=${MYSQL_HOST} --port=${MYSQL_PORT} -e "SET GLOBAL log_output='TABLE'; SET GLOBAL general_log = 1;" mysql
- name: Update npm to a version that supports workspaces (v7 or later)
if: ${{ matrix.node < 16 }}
run: npm install -g npm@9 # npm@9 supports node >=14.17.0
- name: Install
run: npm ci
- name: Download Build Artifacts
12 changes: 7 additions & 5 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -37,14 +37,19 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14", "16", "18", "20", "22"]
node:
- "18.19.0"
- "18"
- "20.6.0"
- "20"
- "22"
include:
- node: 18
code-coverage: true
runs-on: ubuntu-latest
services:
memcached:
image: memcached:1.6.36-alpine
image: memcached:1.6.37-alpine
ports:
- 11211:11211
mongo:
@@ -151,9 +156,6 @@ jobs:
node-version: ${{ matrix.node }}
- name: Set MySQL variables
run: mysql --user=root --password=${MYSQL_ROOT_PASSWORD} --host=${MYSQL_HOST} --port=${MYSQL_PORT} -e "SET GLOBAL log_output='TABLE'; SET GLOBAL general_log = 1;" mysql
- name: Update npm to a version that supports workspaces (v7 or later)
if: ${{ matrix.node < 16 }}
run: npm install -g npm@9 # npm@9 supports node >=14.17.0
- name: Install
run: npm ci
- name: Download Build Artifacts
128 changes: 64 additions & 64 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
{
"detectors/node/opentelemetry-resource-detector-alibaba-cloud": "0.30.1",
"detectors/node/opentelemetry-resource-detector-aws": "1.12.0",
"detectors/node/opentelemetry-resource-detector-azure": "0.6.1",
"detectors/node/opentelemetry-resource-detector-container": "0.6.1",
"detectors/node/opentelemetry-resource-detector-gcp": "0.33.1",
"detectors/node/opentelemetry-resource-detector-github": "0.30.0",
"detectors/node/opentelemetry-resource-detector-instana": "0.18.1",
"metapackages/auto-configuration-propagators": "0.3.3",
"metapackages/auto-instrumentations-node": "0.56.1",
"metapackages/auto-instrumentations-web": "0.45.1",
"packages/baggage-span-processor": "0.3.1",
"packages/opentelemetry-host-metrics": "0.35.5",
"packages/opentelemetry-id-generator-aws-xray": "1.2.3",
"packages/opentelemetry-propagation-utils": "0.30.16",
"packages/opentelemetry-redis-common": "0.36.2",
"packages/opentelemetry-sql-common": "0.40.1",
"packages/opentelemetry-test-utils": "0.45.1",
"packages/winston-transport": "0.10.1",
"plugins/node/instrumentation-amqplib": "0.46.1",
"plugins/node/instrumentation-cucumber": "0.14.1",
"plugins/node/instrumentation-dataloader": "0.16.1",
"plugins/node/instrumentation-fs": "0.19.1",
"plugins/node/instrumentation-kafkajs": "0.7.1",
"plugins/node/instrumentation-lru-memoizer": "0.44.1",
"plugins/node/instrumentation-mongoose": "0.46.1",
"plugins/node/instrumentation-runtime-node": "0.12.2",
"plugins/node/instrumentation-socket.io": "0.46.1",
"plugins/node/instrumentation-tedious": "0.18.1",
"plugins/node/instrumentation-undici": "0.10.1",
"plugins/node/opentelemetry-instrumentation-aws-lambda": "0.50.3",
"plugins/node/opentelemetry-instrumentation-aws-sdk": "0.49.1",
"plugins/node/opentelemetry-instrumentation-bunyan": "0.45.1",
"plugins/node/opentelemetry-instrumentation-cassandra": "0.45.1",
"plugins/node/opentelemetry-instrumentation-connect": "0.43.1",
"plugins/node/opentelemetry-instrumentation-dns": "0.43.1",
"plugins/node/opentelemetry-instrumentation-express": "0.47.1",
"plugins/node/opentelemetry-instrumentation-fastify": "0.44.2",
"plugins/node/opentelemetry-instrumentation-generic-pool": "0.43.1",
"plugins/node/opentelemetry-instrumentation-graphql": "0.47.1",
"plugins/node/opentelemetry-instrumentation-hapi": "0.45.2",
"plugins/node/opentelemetry-instrumentation-ioredis": "0.47.1",
"plugins/node/opentelemetry-instrumentation-knex": "0.44.1",
"plugins/node/opentelemetry-instrumentation-koa": "0.47.1",
"plugins/node/opentelemetry-instrumentation-memcached": "0.43.1",
"plugins/node/opentelemetry-instrumentation-mongodb": "0.52.0",
"plugins/node/opentelemetry-instrumentation-mysql": "0.45.1",
"plugins/node/opentelemetry-instrumentation-mysql2": "0.45.2",
"plugins/node/opentelemetry-instrumentation-nestjs-core": "0.44.1",
"plugins/node/opentelemetry-instrumentation-net": "0.43.1",
"plugins/node/opentelemetry-instrumentation-pg": "0.51.1",
"plugins/node/opentelemetry-instrumentation-pino": "0.46.1",
"plugins/node/opentelemetry-instrumentation-redis": "0.46.1",
"plugins/node/opentelemetry-instrumentation-redis-4": "0.46.1",
"plugins/node/opentelemetry-instrumentation-restify": "0.45.1",
"plugins/node/opentelemetry-instrumentation-router": "0.44.1",
"plugins/node/opentelemetry-instrumentation-winston": "0.44.1",
"plugins/web/opentelemetry-instrumentation-document-load": "0.44.1",
"plugins/web/opentelemetry-instrumentation-long-task": "0.44.1",
"plugins/web/opentelemetry-instrumentation-user-interaction": "0.44.1",
"plugins/web/opentelemetry-plugin-react-load": "0.31.1",
"propagators/opentelemetry-propagator-instana": "0.3.3",
"propagators/opentelemetry-propagator-ot-trace": "0.27.3",
"propagators/propagator-aws-xray": "1.26.2",
"propagators/propagator-aws-xray-lambda": "0.53.2"
"detectors/node/opentelemetry-resource-detector-alibaba-cloud": "0.31.0",
"detectors/node/opentelemetry-resource-detector-aws": "2.0.0",
"detectors/node/opentelemetry-resource-detector-azure": "0.7.0",
"detectors/node/opentelemetry-resource-detector-container": "0.7.0",
"detectors/node/opentelemetry-resource-detector-gcp": "0.34.0",
"detectors/node/opentelemetry-resource-detector-github": "0.31.0",
"detectors/node/opentelemetry-resource-detector-instana": "0.19.0",
"metapackages/auto-configuration-propagators": "0.4.0",
"metapackages/auto-instrumentations-node": "0.57.0",
"metapackages/auto-instrumentations-web": "0.46.0",
"packages/baggage-span-processor": "0.4.0",
"packages/opentelemetry-host-metrics": "0.36.0",
"packages/opentelemetry-id-generator-aws-xray": "2.0.0",
"packages/opentelemetry-propagation-utils": "0.31.0",
"packages/opentelemetry-redis-common": "0.37.0",
"packages/opentelemetry-sql-common": "0.41.0",
"packages/opentelemetry-test-utils": "0.46.0",
"packages/winston-transport": "0.11.0",
"plugins/node/instrumentation-amqplib": "0.47.0",
"plugins/node/instrumentation-cucumber": "0.15.0",
"plugins/node/instrumentation-dataloader": "0.17.0",
"plugins/node/instrumentation-fs": "0.20.0",
"plugins/node/instrumentation-kafkajs": "0.8.0",
"plugins/node/instrumentation-lru-memoizer": "0.45.0",
"plugins/node/instrumentation-mongoose": "0.47.0",
"plugins/node/instrumentation-runtime-node": "0.13.0",
"plugins/node/instrumentation-socket.io": "0.47.0",
"plugins/node/instrumentation-tedious": "0.19.0",
"plugins/node/instrumentation-undici": "0.11.0",
"plugins/node/opentelemetry-instrumentation-aws-lambda": "0.51.0",
"plugins/node/opentelemetry-instrumentation-aws-sdk": "0.50.0",
"plugins/node/opentelemetry-instrumentation-bunyan": "0.46.0",
"plugins/node/opentelemetry-instrumentation-cassandra": "0.46.0",
"plugins/node/opentelemetry-instrumentation-connect": "0.44.0",
"plugins/node/opentelemetry-instrumentation-dns": "0.44.0",
"plugins/node/opentelemetry-instrumentation-express": "0.48.0",
"plugins/node/opentelemetry-instrumentation-fastify": "0.45.0",
"plugins/node/opentelemetry-instrumentation-generic-pool": "0.44.0",
"plugins/node/opentelemetry-instrumentation-graphql": "0.48.0",
"plugins/node/opentelemetry-instrumentation-hapi": "0.46.0",
"plugins/node/opentelemetry-instrumentation-ioredis": "0.48.0",
"plugins/node/opentelemetry-instrumentation-knex": "0.45.0",
"plugins/node/opentelemetry-instrumentation-koa": "0.48.0",
"plugins/node/opentelemetry-instrumentation-memcached": "0.44.0",
"plugins/node/opentelemetry-instrumentation-mongodb": "0.53.0",
"plugins/node/opentelemetry-instrumentation-mysql": "0.46.0",
"plugins/node/opentelemetry-instrumentation-mysql2": "0.46.0",
"plugins/node/opentelemetry-instrumentation-nestjs-core": "0.45.0",
"plugins/node/opentelemetry-instrumentation-net": "0.44.0",
"plugins/node/opentelemetry-instrumentation-pg": "0.52.0",
"plugins/node/opentelemetry-instrumentation-pino": "0.47.0",
"plugins/node/opentelemetry-instrumentation-redis": "0.47.0",
"plugins/node/opentelemetry-instrumentation-redis-4": "0.47.0",
"plugins/node/opentelemetry-instrumentation-restify": "0.46.0",
"plugins/node/opentelemetry-instrumentation-router": "0.45.0",
"plugins/node/opentelemetry-instrumentation-winston": "0.45.0",
"plugins/web/opentelemetry-instrumentation-document-load": "0.45.0",
"plugins/web/opentelemetry-instrumentation-long-task": "0.45.0",
"plugins/web/opentelemetry-instrumentation-user-interaction": "0.45.0",
"plugins/web/opentelemetry-plugin-react-load": "0.32.0",
"propagators/opentelemetry-propagator-instana": "0.4.0",
"propagators/opentelemetry-propagator-ot-trace": "0.28.0",
"propagators/propagator-aws-xray": "2.0.0",
"propagators/propagator-aws-xray-lambda": "0.54.0"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## [0.31.0](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/resource-detector-alibaba-cloud-v0.30.1...resource-detector-alibaba-cloud-v0.31.0) (2025-03-18)


### ⚠ BREAKING CHANGES

* chore!: Update to 2.x and 0.200.x @opentelemetry/* packages from opentelemetry-js.git per [2.x upgrade guide](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/upgrade-to-2.x.md)
* The minimum supported Node.js has been raised to ^18.19.0 || >=20.6.0. This means that support for Node.js 14 and 16 has been dropped.
* The minimum supported TypeScript version has been raised to 5.0.4.
* The compilation target for transpiled TypeScript has been raised to ES2022 (from ES2017).

### Miscellaneous Chores

* update to JS SDK 2.x ([#2738](https://github.com/open-telemetry/opentelemetry-js-contrib/issues/2738)) ([7fb4ba3](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/7fb4ba3bc36dc616bd86375cfd225722b850d0d5))


### Dependencies

* The following workspace dependencies were updated
* devDependencies
* @opentelemetry/contrib-test-utils bumped from ^0.45.1 to ^0.46.0

## [0.30.1](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/resource-detector-alibaba-cloud-v0.30.0...resource-detector-alibaba-cloud-v0.30.1) (2025-02-19)


Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/resource-detector-alibaba-cloud",
"version": "0.30.1",
"version": "0.31.0",
"description": "OpenTelemetry resource detector for Alibaba Cloud",
"main": "build/src/index.js",
"module": "build/esm/index.js",
@@ -28,7 +28,7 @@
"author": "OpenTelemetry Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=14"
"node": "^18.19.0 || >=20.6.0"
},
"files": [
"build/src/**/*.js",
@@ -43,22 +43,23 @@
},
"devDependencies": {
"@opentelemetry/api": "^1.0.0",
"@opentelemetry/contrib-test-utils": "^0.45.1",
"@types/mocha": "8.2.3",
"@opentelemetry/contrib-test-utils": "^0.46.0",
"@opentelemetry/sdk-trace-base": "^2.0.0",
"@types/mocha": "10.0.10",
"@types/node": "18.18.14",
"@types/sinon": "10.0.20",
"@types/sinon": "17.0.4",
"nock": "13.3.3",
"nyc": "15.1.0",
"rimraf": "5.0.10",
"sinon": "15.2.0",
"typescript": "4.4.4"
"typescript": "5.0.4"
},
"peerDependencies": {
"@opentelemetry/api": "^1.0.0"
},
"dependencies": {
"@opentelemetry/core": "^1.26.0",
"@opentelemetry/resources": "^1.10.0",
"@opentelemetry/core": "^2.0.0",
"@opentelemetry/resources": "^2.0.0",
"@opentelemetry/semantic-conventions": "^1.27.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/detectors/node/opentelemetry-resource-detector-alibaba-cloud#readme",
Original file line number Diff line number Diff line change
@@ -14,14 +14,12 @@
* limitations under the License.
*/

import { context } from '@opentelemetry/api';
import { context, diag } from '@opentelemetry/api';
import { suppressTracing } from '@opentelemetry/core';
import {
DetectorSync,
IResource,
Resource,
ResourceAttributes,
ResourceDetectionConfig,
ResourceDetector,
DetectedResource,
DetectedResourceAttributes,
} from '@opentelemetry/resources';
import {
CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,
@@ -43,7 +41,7 @@ import * as http from 'http';
* AlibabaCloud ECS and return a {@link Resource} populated with metadata about
* the ECS instance. Returns an empty Resource if detection fails.
*/
class AlibabaCloudEcsDetector implements DetectorSync {
class AlibabaCloudEcsDetector implements ResourceDetector {
/**
* See https://www.alibabacloud.com/help/doc-detail/67254.htm for
* documentation about the AlibabaCloud instance identity document.
@@ -62,36 +60,59 @@ class AlibabaCloudEcsDetector implements DetectorSync {
*
* @param config (unused) The resource detection config
*/
detect(_config?: ResourceDetectionConfig): IResource {
const attributes = context.with(suppressTracing(context.active()), () =>
this._getAttributes()
detect(): DetectedResource {
const dataPromise = context.with(suppressTracing(context.active()), () =>
this._gatherData()
);
return new Resource({}, attributes);

const attrNames = [
SEMRESATTRS_CLOUD_PROVIDER,
SEMRESATTRS_CLOUD_PLATFORM,
SEMRESATTRS_CLOUD_ACCOUNT_ID,
SEMRESATTRS_CLOUD_REGION,
SEMRESATTRS_CLOUD_AVAILABILITY_ZONE,
SEMRESATTRS_HOST_ID,
SEMRESATTRS_HOST_TYPE,
SEMRESATTRS_HOST_NAME,
];

const attributes = {} as DetectedResourceAttributes;
attrNames.forEach(name => {
// Each resource attribute is determined asynchronously in _gatherData().
attributes[name] = dataPromise.then(data => data[name]);
});

return { attributes };
}

/** Gets identity and host info and returns them as attribs. Empty object if fails */
async _getAttributes(
_config?: ResourceDetectionConfig
): Promise<ResourceAttributes> {
const {
'owner-account-id': accountId,
'instance-id': instanceId,
'instance-type': instanceType,
'region-id': region,
'zone-id': availabilityZone,
} = await this._fetchIdentity();
const hostname = await this._fetchHost();
async _gatherData(): Promise<DetectedResourceAttributes> {
try {
const {
'owner-account-id': accountId,
'instance-id': instanceId,
'instance-type': instanceType,
'region-id': region,
'zone-id': availabilityZone,
} = await this._fetchIdentity();
const hostname = await this._fetchHost();

return {
[SEMRESATTRS_CLOUD_PROVIDER]: CLOUDPROVIDERVALUES_ALIBABA_CLOUD,
[SEMRESATTRS_CLOUD_PLATFORM]: CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,
[SEMRESATTRS_CLOUD_ACCOUNT_ID]: accountId,
[SEMRESATTRS_CLOUD_REGION]: region,
[SEMRESATTRS_CLOUD_AVAILABILITY_ZONE]: availabilityZone,
[SEMRESATTRS_HOST_ID]: instanceId,
[SEMRESATTRS_HOST_TYPE]: instanceType,
[SEMRESATTRS_HOST_NAME]: hostname,
};
return {
[SEMRESATTRS_CLOUD_PROVIDER]: CLOUDPROVIDERVALUES_ALIBABA_CLOUD,
[SEMRESATTRS_CLOUD_PLATFORM]: CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,
[SEMRESATTRS_CLOUD_ACCOUNT_ID]: accountId,
[SEMRESATTRS_CLOUD_REGION]: region,
[SEMRESATTRS_CLOUD_AVAILABILITY_ZONE]: availabilityZone,
[SEMRESATTRS_HOST_ID]: instanceId,
[SEMRESATTRS_HOST_TYPE]: instanceType,
[SEMRESATTRS_HOST_NAME]: hostname,
};
} catch (err: any) {
diag.debug(
`${this.constructor.name}: did not detect resource: ${err?.message}`
);
return {};
}
}

/**
Loading