@ue-shed/observability 0.13.0 → 0.14.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/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  # `@ue-shed/observability`
2
2
 
3
+ The application must provide `effect@^4.0.0` as a peer dependency. Reuse one compatible
4
+ Effect installation across the application and UE Shed libraries.
5
+ Also install `@effect/opentelemetry@^4.0.0` in the application.
6
+
3
7
  Shared, headless OpenTelemetry composition, bounded runtime metrics, and schema-owned health for UE
4
8
  Shed hosts. Applications provide `runtimeObservabilityLayer` once at their root. Local use does not
5
9
  require an exporter; set `UE_SHED_TELEMETRY_MODE=console` to emit local traces, metrics, and logs.
6
10
 
7
11
  ```sh
8
- npm install --save-exact @ue-shed/observability
12
+ npm install --save-exact @ue-shed/observability "effect@^4.0.0" "@effect/opentelemetry@^4.0.0"
9
13
  ```
10
14
 
11
15
  `RuntimeHealthService` is the diagnostic authority for CLI and UI clients. Consumers report typed
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { defaultHealthInput, runtimeHealthLayer } from "./health.js";
3
3
  export * from "./health.js";
4
4
  export const TelemetryMode = Schema.Literals(["disabled", "console"]);
5
5
  export * from "./metrics.js";
6
- const telemetryModeConfig = Config.literals(["disabled", "console"], "UE_SHED_TELEMETRY_MODE").pipe(Config.withDefault("disabled"));
6
+ const telemetryModeConfig = Config.Literals(["disabled", "console"], "UE_SHED_TELEMETRY_MODE").pipe(Config.withDefault("disabled"));
7
7
  export function runtimeObservabilityLayer(options) {
8
8
  return Layer.unwrap(Effect.gen(function* () {
9
9
  const mode = yield* telemetryModeConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ue-shed/observability",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Headless OpenTelemetry composition, bounded metrics, and runtime health for UE Shed hosts.",
5
5
  "homepage": "https://github.com/ue-shed/ue-shed#readme",
6
6
  "bugs": {
@@ -39,7 +39,6 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@effect/opentelemetry": "4.0.0-beta.98",
43
42
  "@opentelemetry/api": "^1.9.0",
44
43
  "@opentelemetry/api-logs": "^0.205.0",
45
44
  "@opentelemetry/resources": "^2.2.0",
@@ -48,11 +47,16 @@
48
47
  "@opentelemetry/sdk-trace-base": "^2.2.0",
49
48
  "@opentelemetry/sdk-trace-node": "^2.2.0",
50
49
  "@opentelemetry/sdk-trace-web": "^2.2.0",
51
- "@opentelemetry/semantic-conventions": "^1.38.0",
52
- "effect": "4.0.0-beta.98"
50
+ "@opentelemetry/semantic-conventions": "^1.38.0"
53
51
  },
54
52
  "devDependencies": {
55
- "@effect/vitest": "4.0.0-beta.98"
53
+ "@effect/opentelemetry": "4.0.4",
54
+ "@effect/vitest": "4.0.4",
55
+ "effect": "4.0.4"
56
+ },
57
+ "peerDependencies": {
58
+ "@effect/opentelemetry": "^4.0.0",
59
+ "effect": "^4.0.0"
56
60
  },
57
61
  "engines": {
58
62
  "node": ">=22.14.0"