@odla-ai/o11y 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. package/README.md +7 -0
  2. package/llms.txt +8 -1
  3. package/package.json +19 -4
package/README.md CHANGED
@@ -44,6 +44,13 @@ Config is read from env vars (override per call via the second `withObservabilit
44
44
 
45
45
  `wrangler.jsonc` needs `"compatibility_flags": ["nodejs_compat"]` (for AsyncLocalStorage).
46
46
 
47
+ Keep `ODLA_O11Y_ENDPOINT` and `ODLA_O11Y_SERVICE` set as plain vars in every
48
+ environment and treat only `ODLA_O11Y_TOKEN` as an optional secret: the
49
+ metrics/logs sink no-ops without an endpoint, but the trace exporter builds
50
+ its URL from it, so an unset endpoint yields export attempts against a
51
+ relative URL (harmless to responses, noisy in logs). Without a token the
52
+ collector rejects the export; the app itself is unaffected.
53
+
47
54
  ## API
48
55
 
49
56
  - `withObservability(handler, opts?)` — wrap a Worker handler (fetch/scheduled).
package/llms.txt CHANGED
@@ -46,6 +46,13 @@ Config is read from env vars (override per call via the second `withObservabilit
46
46
 
47
47
  `wrangler.jsonc` needs `"compatibility_flags": ["nodejs_compat"]` (for AsyncLocalStorage).
48
48
 
49
+ Keep `ODLA_O11Y_ENDPOINT` and `ODLA_O11Y_SERVICE` set as plain vars in every
50
+ environment and treat only `ODLA_O11Y_TOKEN` as an optional secret: the
51
+ metrics/logs sink no-ops without an endpoint, but the trace exporter builds
52
+ its URL from it, so an unset endpoint yields export attempts against a
53
+ relative URL (harmless to responses, noisy in logs). Without a token the
54
+ collector rejects the export; the app itself is unaffected.
55
+
49
56
  ## API
50
57
 
51
58
  - `withObservability(handler, opts?)` — wrap a Worker handler (fetch/scheduled).
@@ -61,7 +68,7 @@ Config is read from env vars (override per call via the second `withObservabilit
61
68
 
62
69
  MIT
63
70
 
64
- ## API reference (generated from dist/index.d.ts, v1.0.0)
71
+ ## API reference (generated from dist/index.d.ts, v1.0.1)
65
72
 
66
73
  ```ts
67
74
  import { Attrs, ModelPrice } from '@odla/o11y-core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odla-ai/o11y",
3
- "version": "1.0.0",
4
- "description": "Official observability client for odla Cloudflare Workers OpenTelemetry traces, metrics, structured errors, and LLM cost, exported over OTLP to the odla-o11y collector.",
3
+ "version": "1.0.1",
4
+ "description": "Official observability client for odla Cloudflare Workers \u2014 OpenTelemetry traces, metrics, structured errors, and LLM cost, exported over OTLP to the odla-o11y collector.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -14,12 +14,27 @@
14
14
  "require": "./dist/index.cjs"
15
15
  }
16
16
  },
17
- "files": ["dist", "README.md", "llms.txt"],
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "llms.txt"
21
+ ],
18
22
  "sideEffects": false,
19
23
  "publishConfig": {
20
24
  "access": "public"
21
25
  },
22
- "keywords": ["odla", "odla-o11y", "observability", "opentelemetry", "otlp", "tracing", "metrics", "llm-cost", "cloudflare", "workers"],
26
+ "keywords": [
27
+ "odla",
28
+ "odla-o11y",
29
+ "observability",
30
+ "opentelemetry",
31
+ "otlp",
32
+ "tracing",
33
+ "metrics",
34
+ "llm-cost",
35
+ "cloudflare",
36
+ "workers"
37
+ ],
23
38
  "scripts": {
24
39
  "build": "tsup",
25
40
  "clean": "rm -rf dist",