dd-trace 6.0.0-pre-8ec0cfe → 6.0.0-pre-a425f89
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/ci/init.js +0 -4
- package/package.json +1 -1
- package/packages/dd-trace/src/config.js +7 -0
package/ci/init.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
const tracer = require('../packages/dd-trace')
|
|
3
|
-
const { ORIGIN_KEY } = require('../packages/dd-trace/src/constants')
|
|
4
3
|
const { isTrue } = require('../packages/dd-trace/src/util')
|
|
5
4
|
|
|
6
5
|
const isJestWorker = !!process.env.JEST_WORKER_ID
|
|
7
6
|
|
|
8
7
|
const options = {
|
|
9
8
|
startupLogs: false,
|
|
10
|
-
tags: {
|
|
11
|
-
[ORIGIN_KEY]: 'ciapp-test'
|
|
12
|
-
},
|
|
13
9
|
isCiVisibility: true,
|
|
14
10
|
flushInterval: isJestWorker ? 0 : 5000
|
|
15
11
|
}
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ const { GIT_REPOSITORY_URL, GIT_COMMIT_SHA } = require('./plugins/util/tags')
|
|
|
13
13
|
const { getGitMetadataFromGitProperties, removeUserSensitiveInfo } = require('./git_properties')
|
|
14
14
|
const { updateConfig } = require('./telemetry')
|
|
15
15
|
const { getIsGCPFunction, getIsAzureFunctionConsumptionPlan } = require('./serverless')
|
|
16
|
+
const { ORIGIN_KEY } = require('./constants')
|
|
16
17
|
|
|
17
18
|
const fromEntries = Object.fromEntries || (entries =>
|
|
18
19
|
entries.reduce((obj, [k, v]) => Object.assign(obj, { [k]: v }), {}))
|
|
@@ -710,6 +711,12 @@ ken|consumer_?(?:id|key|secret)|sign(?:ed|ature)?|auth(?:entication|orization)?)
|
|
|
710
711
|
'runtime-id': uuid()
|
|
711
712
|
})
|
|
712
713
|
|
|
714
|
+
if (this.isCiVisibility) {
|
|
715
|
+
tagger.add(this.tags, {
|
|
716
|
+
[ORIGIN_KEY]: 'ciapp-test'
|
|
717
|
+
})
|
|
718
|
+
}
|
|
719
|
+
|
|
713
720
|
if (this.gitMetadataEnabled) {
|
|
714
721
|
this.repositoryUrl = removeUserSensitiveInfo(
|
|
715
722
|
coalesce(
|