@typeberry/lib 0.7.0-5ef505b → 0.7.0-f69a8ea

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": "@typeberry/lib",
3
- "version": "0.7.0-5ef505b",
3
+ "version": "0.7.0-f69a8ea",
4
4
  "description": "Typeberry Library",
5
5
  "main": "./bin/lib/index.js",
6
6
  "types": "./bin/lib/index.d.ts",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/telemetry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAOlD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,SAAS;aAoBgB,GAAG,EAAE,OAAO;IAnBhD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,eAAe;IAmBzC,OAAO;IAED,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/telemetry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAOlD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,SAAS;aAuBgB,GAAG,EAAE,OAAO;IAtBhD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,eAAe;IAsBzC,OAAO;IAED,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7B"}
@@ -14,7 +14,10 @@ export class Telemetry {
14
14
  isMain: config.isMain ?? false,
15
15
  serviceName: `typeberry-${config.nodeName}`,
16
16
  serviceVersion: version,
17
- enabled: env.OTEL_ENABLED !== "false",
17
+ // Opt-in: telemetry is off unless explicitly enabled. Keeping it on by
18
+ // default makes long-running processes (e.g. the fuzz target) accumulate
19
+ // unbounded in-memory metric series for high-cardinality attributes.
20
+ enabled: env.OTEL_ENABLED === "true",
18
21
  otlpEndpoint: env.OTEL_EXPORTER_OTLP_ENDPOINT ?? "http://localhost:9090/api/v1/otlp",
19
22
  resourceAttributes: {
20
23
  "worker.type": config.worker,