@aztec/telemetry-client 1.0.0-staging.3 → 1.0.0-staging.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otel_resource.d.ts","sourceRoot":"","sources":["../src/otel_resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"otel_resource.d.ts","sourceRoot":"","sources":["../src/otel_resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,0BAA0B,CAAC;AAKlC,wBAAgB,eAAe,IAAI,SAAS,CAe3C"}
|
package/dest/otel_resource.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Resource, detectResourcesSync, envDetectorSync, osDetectorSync,
|
|
1
|
+
import { Resource, detectResourcesSync, envDetectorSync, osDetectorSync, serviceInstanceIdDetectorSync } from '@opentelemetry/resources';
|
|
2
2
|
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
|
|
3
3
|
import { AZTEC_NODE_ROLE, AZTEC_REGISTRY_ADDRESS, AZTEC_ROLLUP_ADDRESS, AZTEC_ROLLUP_VERSION } from './attributes.js';
|
|
4
4
|
export function getOtelResource() {
|
|
@@ -7,7 +7,10 @@ export function getOtelResource() {
|
|
|
7
7
|
aztecNetworkDetectorSync,
|
|
8
8
|
osDetectorSync,
|
|
9
9
|
envDetectorSync,
|
|
10
|
-
|
|
10
|
+
// this detector is disabled because:
|
|
11
|
+
// 1. our software runs in a docker container, a lot of the attributes detected would be identical across different machines (e.g. all run node v22, executing the same script, running PID 1, etc)
|
|
12
|
+
// 2. it catures process.argv which could contain sensitive values in plain text (e.g. validator private keys)
|
|
13
|
+
// processDetectorSync,
|
|
11
14
|
serviceInstanceIdDetectorSync
|
|
12
15
|
]
|
|
13
16
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/telemetry-client",
|
|
3
|
-
"version": "1.0.0-staging.
|
|
3
|
+
"version": "1.0.0-staging.5",
|
|
4
4
|
"inherits": [
|
|
5
5
|
"../package.common.json"
|
|
6
6
|
],
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"!*.test.*"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aztec/foundation": "1.0.0-staging.
|
|
29
|
-
"@aztec/stdlib": "1.0.0-staging.
|
|
28
|
+
"@aztec/foundation": "1.0.0-staging.5",
|
|
29
|
+
"@aztec/stdlib": "1.0.0-staging.5",
|
|
30
30
|
"@opentelemetry/api": "^1.9.0",
|
|
31
31
|
"@opentelemetry/api-logs": "^0.55.0",
|
|
32
32
|
"@opentelemetry/core": "^1.28.0",
|
package/src/otel_resource.ts
CHANGED
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
detectResourcesSync,
|
|
6
6
|
envDetectorSync,
|
|
7
7
|
osDetectorSync,
|
|
8
|
-
processDetectorSync,
|
|
9
8
|
serviceInstanceIdDetectorSync,
|
|
10
9
|
} from '@opentelemetry/resources';
|
|
11
10
|
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
|
|
@@ -18,7 +17,10 @@ export function getOtelResource(): IResource {
|
|
|
18
17
|
aztecNetworkDetectorSync,
|
|
19
18
|
osDetectorSync,
|
|
20
19
|
envDetectorSync,
|
|
21
|
-
|
|
20
|
+
// this detector is disabled because:
|
|
21
|
+
// 1. our software runs in a docker container, a lot of the attributes detected would be identical across different machines (e.g. all run node v22, executing the same script, running PID 1, etc)
|
|
22
|
+
// 2. it catures process.argv which could contain sensitive values in plain text (e.g. validator private keys)
|
|
23
|
+
// processDetectorSync,
|
|
22
24
|
serviceInstanceIdDetectorSync,
|
|
23
25
|
],
|
|
24
26
|
});
|