@depup/dd-trace 6.20.0-depup.0 → 6.20.1-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/dd-trace
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [dd-trace](https://www.npmjs.com/package/dd-trace) @ 6.20.0 |
17
- | Processed | 2026-10-07 |
16
+ | Original | [dd-trace](https://www.npmjs.com/package/dd-trace) @ 6.20.1 |
17
+ | Processed | 2026-10-08 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 1 |
20
20
 
package/changes.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "to": "^3.5.2"
6
6
  }
7
7
  },
8
- "timestamp": "2026-10-07T00:36:07.921Z",
8
+ "timestamp": "2026-10-08T16:11:38.043Z",
9
9
  "totalUpdated": 1
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/dd-trace",
3
- "version": "6.20.0-depup.0",
3
+ "version": "6.20.1-depup.0",
4
4
  "description": "Datadog APM tracing client for JavaScript (with updated dependencies)",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "test:debugger": "mocha \"packages/dd-trace/test/debugger/**/*.spec.js\"",
40
40
  "test:debugger:ci": "node scripts/c8-ci.js test:debugger",
41
41
  "test:eslint-rules": "node scripts/run-eslint-rule-tests.mjs eslint-rules/*.test.mjs",
42
- "test:trace:core": "node scripts/mocha-parallel-files.js --expose-gc --timeout 30000 -- \"packages/dd-trace/test/*.spec.js\" \"packages/dd-trace/test/{agent,ci-visibility,config,crashtracking,datastreams,encode,exporters,log-submission,msgpack,opentelemetry,opentracing,payload-tagging,plugins,remote_config,service-naming,standalone,telemetry,external-logger}/**/*.spec.js\"",
42
+ "test:trace:core": "node scripts/mocha-parallel-files.js --expose-gc --timeout 30000 -- \"packages/dd-trace/test/*.spec.js\" \"packages/dd-trace/test/{agent,ci-visibility,config,crashtracking,datastreams,encode,exporters,log-submission,msgpack,opentelemetry,opentracing,payload-tagging,plugins,remote_config,service-naming,setup,standalone,telemetry,external-logger}/**/*.spec.js\"",
43
43
  "test:trace:core:ci": "node scripts/c8-ci.js test:trace:core",
44
44
  "test:trace:guardrails": "mocha \"packages/dd-trace/test/guardrails/**/*.spec.js\"",
45
45
  "test:trace:guardrails:ci": "node scripts/c8-ci.js test:trace:guardrails",
@@ -221,7 +221,6 @@
221
221
  "@types/sinon": "^22.0.0",
222
222
  "@vercel/nft": "^1.11.0",
223
223
  "@yarnpkg/lockfile": "^1.1.0",
224
- "axios": "^1.20.0",
225
224
  "benchmark": "^2.1.4",
226
225
  "body-parser": "^2.3.0",
227
226
  "bun": "1.4.2",
@@ -232,14 +231,14 @@
232
231
  "eslint-plugin-import-x": "^4.16.2",
233
232
  "eslint-plugin-jsdoc": "^64.5.4",
234
233
  "eslint-plugin-mocha": "^12.0.2",
235
- "eslint-plugin-n": "^18.3.0",
234
+ "eslint-plugin-n": "^18.4.0",
236
235
  "eslint-plugin-promise": "^7.3.0",
237
236
  "eslint-plugin-regexp": "^3.3.1",
238
- "eslint-plugin-sonarjs": "^4.2.1",
237
+ "eslint-plugin-sonarjs": "^4.2.2",
239
238
  "eslint-plugin-unicorn": "^74.0.0",
240
239
  "express": "^5.1.0",
241
240
  "glob": "^10.4.5",
242
- "globals": "^17.12.0",
241
+ "globals": "^17.13.0",
243
242
  "graphql": "*",
244
243
  "husky": "^9.1.7",
245
244
  "istanbul-lib-coverage": "^3.2.2",
@@ -280,8 +279,8 @@
280
279
  },
281
280
  "depsUpdated": 1,
282
281
  "originalPackage": "dd-trace",
283
- "originalVersion": "6.20.0",
284
- "processedAt": "2026-10-07T00:36:24.046Z",
282
+ "originalVersion": "6.20.1",
283
+ "processedAt": "2026-10-08T16:11:53.547Z",
285
284
  "smokeTest": "passed"
286
285
  }
287
286
  }
@@ -3655,9 +3655,9 @@
3655
3655
  ],
3656
3656
  "DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP": [
3657
3657
  {
3658
- "implementation": "F",
3658
+ "implementation": "I",
3659
3659
  "type": "string",
3660
- "default": "(?:p(?:ass)?w(?:or)?d|pass(?:_?phrase)?|secret|(?:api_?|private_?|public_?|access_?|secret_?)key(?:_?id)?|token|consumer_?(?:id|key|secret)|sign(?:ed|ature)?|auth(?:entication|orization)?)(?:(?:\\s|%20)*(?:=|%3D)[^&]+|(?:\"|%22)(?:\\s|%20)*(?::|%3A)(?:\\s|%20)*(?:\"|%22)(?:%2[^2]|%[^2]|[^\"%])+(?:\"|%22))|bearer(?:\\s|%20)+[a-z0-9\\._\\-]+|token(?::|%3A)[a-z0-9]{13}|gh[opsu]_[0-9a-zA-Z]{36}|ey[I-L](?:[\\w=-]|%3D)+\\.ey[I-L](?:[\\w=-]|%3D)+(?:\\.(?:[\\w.+\\/=-]|%3D|%2F|%2B)+)?|[\\-]{5}BEGIN(?:[a-z\\s]|%20)+PRIVATE(?:\\s|%20)KEY[\\-]{5}[^\\-]+[\\-]{5}END(?:[a-z\\s]|%20)+PRIVATE(?:\\s|%20)KEY|ssh-rsa(?:\\s|%20)*(?:[a-z0-9\\/\\.+]|%2F|%5C|%2B){100,}"
3660
+ "default": "(?:(?:\"|%22)?)(?:(?:old[-_]?|new[-_]?)?p(?:ass)?w(?:or)?d(?:1|2)?|pass(?:[-_]?phrase)?|secret|(?:api[-_]?|private[-_]?|public[-_]?|access[-_]?|secret[-_]?|app(?:lication)?[-_]?)key(?:[-_]?id)?|token|consumer[-_]?(?:id|key|secret)|sign(?:ed|ature)?|auth(?:entication|orization)?)(?:(?:\\s|%20)*(?:=|%3D)[^&]+|(?:\"|%22)(?:\\s|%20)*(?::|%3A)(?:\\s|%20)*(?:\"|%22)(?:%2[^2]|%[^2]|[^\"%])+(?:\"|%22))|(?:bearer(?:\\s|%20)+[a-z0-9._\\-]+|token(?::|%3A)[a-z0-9]{13}|gh[opsu]_[0-9a-zA-Z]{36}|(^|[^\\w%-]|%[0-9a-f]{2})ey[I-L][\\w-]+(?:=|%3D)*\\.ey[I-L][\\w-]+(?:=|%3D)*(?:\\.(?:[\\w.+/=-]|%3D|%2F|%2B)+)?|-{5}BEGIN(?:[a-z\\s]|%20)+PRIVATE(?:\\s|%20)KEY-{5}[^\\-]+-{5}END(?:[a-z\\s]|%20)+PRIVATE(?:\\s|%20)KEY(?:-{5})?(?:\\n|%0A)?|(?:ssh-(?:rsa|dss)|ecdsa-[a-z0-9]+-[a-z0-9]+)(?:\\s|%20|%09)+(?:[a-z0-9/.+]|%2F|%5C|%2B){100,}(?:=|%3D)*(?:(?:\\s|%20|%09)+[a-z0-9._-]+)?)"
3661
3661
  }
3662
3662
  ],
3663
3663
  "DD_TRACE_OPENAI_ENABLED": [
@@ -2,6 +2,7 @@
2
2
 
3
3
  const { URL } = require('url')
4
4
 
5
+ const { defaults } = require('../../config/defaults')
5
6
  const log = require('../../log')
6
7
 
7
8
  const HTTP2_HEADER_AUTHORITY = ':authority'
@@ -55,12 +56,15 @@ function obfuscateQs (config, url) {
55
56
 
56
57
  let qs = url.slice(i + 1)
57
58
 
58
- qs = qs.replace(queryStringObfuscation, '<redacted>')
59
+ // Group 1 of the default regex is the delimiter in front of a JWT. A user-provided regex may capture the secret.
60
+ const replacement = queryStringObfuscation === defaultQsObfuscator ? '$1<redacted>' : '<redacted>'
61
+ qs = qs.replace(queryStringObfuscation, replacement)
59
62
 
60
63
  return `${path}?${qs}`
61
64
  }
62
65
 
63
66
  const qsObfuscatorCache = new Map()
67
+ let defaultQsObfuscator
64
68
 
65
69
  /**
66
70
  * Compile the configured query-string obfuscator (a regex string, or a boolean)
@@ -85,6 +89,7 @@ function getQsObfuscator (config) {
85
89
  } else if (obfuscator !== '.*') { // '.*' optimizes to a full redact (true)
86
90
  try {
87
91
  compiled = new RegExp(obfuscator, 'gi')
92
+ if (obfuscator === defaults.DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP) defaultQsObfuscator = compiled
88
93
  } catch (err) {
89
94
  log.error('Error getting qs obfuscator', err)
90
95
  }