dd-trace 5.74.0 → 5.75.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.
@@ -19,6 +19,8 @@ const service = getEnv('AWS_LAMBDA_FUNCTION_NAME') ||
19
19
  'node'
20
20
 
21
21
  module.exports = {
22
+ apiKey: undefined,
23
+ appKey: undefined,
22
24
  apmTracingEnabled: true,
23
25
  'appsec.apiSecurity.enabled': true,
24
26
  'appsec.apiSecurity.sampleDelay': 30,
@@ -50,6 +52,10 @@ module.exports = {
50
52
  baggageTagKeys: 'user.id,session.id,account.id',
51
53
  clientIpEnabled: false,
52
54
  clientIpHeader: null,
55
+ 'cloudPayloadTagging.requestsEnabled': false,
56
+ 'cloudPayloadTagging.responsesEnabled': false,
57
+ 'cloudPayloadTagging.maxDepth': 10,
58
+ 'cloudPayloadTagging.rules': [],
53
59
  'crashtracking.enabled': true,
54
60
  'codeOriginForSpans.enabled': true,
55
61
  'codeOriginForSpans.experimental.exit_spans.enabled': false,
@@ -95,6 +101,9 @@ module.exports = {
95
101
  'iast.telemetryVerbosity': 'INFORMATION',
96
102
  'iast.stackTrace.enabled': true,
97
103
  injectionEnabled: [],
104
+ 'installSignature.id': null,
105
+ 'installSignature.time': null,
106
+ 'installSignature.type': null,
98
107
  instrumentationSource: 'manual',
99
108
  injectForce: null,
100
109
  isAzureFunction: false,
@@ -164,7 +164,7 @@ class Tracer extends NoopProxy {
164
164
  rc.setProductHandler('FFE_FLAGS', (action, conf) => {
165
165
  // Feed UFC config directly to OpenFeature provider
166
166
  if (action === 'apply' || action === 'modify') {
167
- this.openfeature._setConfiguration(conf.flag_configuration)
167
+ this.openfeature._setConfiguration(conf)
168
168
  }
169
169
  })
170
170
  }
@@ -41,12 +41,14 @@ function sanitize (logEntry) {
41
41
 
42
42
  const firstIndex = stackLines.findIndex(l => l.match(STACK_FRAME_LINE_REGEX))
43
43
 
44
- const isDDCode = firstIndex !== -1 && stackLines[firstIndex].includes(ddBasePath)
44
+ // Filter to keep only DD frames
45
45
  stackLines = stackLines
46
- .filter((line, index) => (isDDCode && index < firstIndex) || line.includes(ddBasePath))
46
+ .filter((line, index) => index >= firstIndex && line.includes(ddBasePath))
47
47
  .map(line => line.replace(ddBasePath, ''))
48
48
 
49
- if (!isDDCode && logEntry.errorType && stackLines.length) {
49
+ // ALWAYS redact error messages (RFC requirement: exception type only, no message)
50
+ // This handles single-line and multi-line error messages
51
+ if (logEntry.errorType && stackLines.length) {
50
52
  stackLines = [`${logEntry.errorType}: redacted`, ...stackLines]
51
53
  }
52
54
 
package/register.js CHANGED
@@ -5,14 +5,4 @@
5
5
  const { register } = require('node:module')
6
6
  const { pathToFileURL } = require('node:url')
7
7
 
8
- register('./loader-hook.mjs', pathToFileURL(__filename), {
9
- data: {
10
- exclude: [
11
- /langsmith/,
12
- /openai\/_shims/,
13
- /openai\/resources\/chat\/completions\/messages/,
14
- /openai\/agents-core\/dist\/shims/,
15
- /@anthropic-ai\/sdk\/_shims/
16
- ]
17
- }
18
- })
8
+ register('./loader-hook.mjs', pathToFileURL(__filename))