dd-trace 5.63.2 → 5.63.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dd-trace",
|
|
3
|
-
"version": "5.63.
|
|
3
|
+
"version": "5.63.3",
|
|
4
4
|
"description": "Datadog APM tracing client for JavaScript",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"jszip": "^3.10.1",
|
|
175
175
|
"mocha": "^11.6.0",
|
|
176
176
|
"multer": "^2.0.2",
|
|
177
|
-
"nock": "^
|
|
177
|
+
"nock": "^13.5.6",
|
|
178
178
|
"nyc": "^15.1.0",
|
|
179
179
|
"octokit": "^5.0.3",
|
|
180
180
|
"proxyquire": "^1.8.0",
|
|
@@ -166,6 +166,9 @@ function getWrappedEnvironment (BaseEnvironment, jestVersion) {
|
|
|
166
166
|
this.knownTestsForThisSuite = hasKnownTests
|
|
167
167
|
? (knownTests?.jest?.[this.testSuite] || [])
|
|
168
168
|
: this.getKnownTestsForSuite(this.testEnvironmentOptions._ddKnownTests)
|
|
169
|
+
log.debug(`this.knownTestsForThisSuite is an array: ${Array.isArray(this.knownTestsForThisSuite)}`)
|
|
170
|
+
log.debug(`this.knownTestsForThisSuite is null: ${this.knownTestsForThisSuite === null}`)
|
|
171
|
+
log.debug(`this.knownTestsForThisSuite is undefined: ${this.knownTestsForThisSuite === undefined}`)
|
|
169
172
|
} catch {
|
|
170
173
|
// If there has been an error parsing the tests, we'll disable Early Flake Deteciton
|
|
171
174
|
this.isEarlyFlakeDetectionEnabled = false
|
|
@@ -469,7 +472,10 @@ function getWrappedEnvironment (BaseEnvironment, jestVersion) {
|
|
|
469
472
|
}
|
|
470
473
|
}
|
|
471
474
|
if (this.isKnownTestsEnabled) {
|
|
472
|
-
|
|
475
|
+
// Check if knownTestsForThisSuite is an array, since the worker may not have provided this information.
|
|
476
|
+
// If it's null or undefined, we can't determine if the test is new.
|
|
477
|
+
const isNew = Array.isArray(this.knownTestsForThisSuite) &&
|
|
478
|
+
!this.knownTestsForThisSuite.includes(originalTestName)
|
|
473
479
|
if (isNew && !isSkipped && !retriedTestsToNumAttempts.has(originalTestName)) {
|
|
474
480
|
retriedTestsToNumAttempts.set(originalTestName, 0)
|
|
475
481
|
if (this.isEarlyFlakeDetectionEnabled) {
|
|
@@ -53,8 +53,8 @@ class PrismaEngine extends DatabasePlugin {
|
|
|
53
53
|
options.resource = originalStatement
|
|
54
54
|
options.type = type || engineSpan.attributes['db.system']
|
|
55
55
|
options.meta['db.type'] = dbType || engineSpan.attributes['db.system']
|
|
56
|
-
options.meta['db.
|
|
57
|
-
options.meta['db.
|
|
56
|
+
options.meta['db.name'] = dbConfig?.database
|
|
57
|
+
options.meta['db.user'] = dbConfig?.user
|
|
58
58
|
options.meta['out.host'] = dbConfig?.host
|
|
59
59
|
options.meta[CLIENT_PORT_KEY] = dbConfig?.port
|
|
60
60
|
}
|