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.
- package/LICENSE-3rdparty.csv +1 -0
- package/index.d.ts +11 -7
- package/loader-hook.mjs +52 -1
- package/package.json +5 -16
- package/packages/datadog-esbuild/index.js +1 -0
- package/packages/datadog-instrumentations/src/cookie-parser.js +0 -2
- package/packages/datadog-instrumentations/src/cucumber.js +2 -2
- package/packages/datadog-instrumentations/src/express-session.js +0 -1
- package/packages/datadog-instrumentations/src/mariadb.js +9 -7
- package/packages/datadog-instrumentations/src/playwright.js +116 -37
- package/packages/datadog-instrumentations/src/vitest.js +44 -12
- package/packages/datadog-plugin-aws-sdk/src/base.js +0 -1
- package/packages/datadog-plugin-playwright/src/index.js +74 -31
- package/packages/datadog-shimmer/src/shimmer.js +2 -0
- package/packages/dd-trace/src/aiguard/sdk.js +25 -3
- package/packages/dd-trace/src/aiguard/tags.js +4 -1
- package/packages/dd-trace/src/config-helper.js +1 -0
- package/packages/dd-trace/src/config.js +345 -329
- package/packages/dd-trace/src/config_defaults.js +9 -0
- package/packages/dd-trace/src/proxy.js +1 -1
- package/packages/dd-trace/src/telemetry/logs/log-collector.js +5 -3
- package/register.js +1 -11
|
@@ -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
|
|
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
|
-
|
|
44
|
+
// Filter to keep only DD frames
|
|
45
45
|
stackLines = stackLines
|
|
46
|
-
.filter((line, index) =>
|
|
46
|
+
.filter((line, index) => index >= firstIndex && line.includes(ddBasePath))
|
|
47
47
|
.map(line => line.replace(ddBasePath, ''))
|
|
48
48
|
|
|
49
|
-
|
|
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))
|