@lunora/do 1.0.0-alpha.42 → 1.0.0-alpha.44
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/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -3749,6 +3749,20 @@ type ContextLogLevel = "debug" | "error" | "fatal" | "info" | "log" | "trace" |
|
|
|
3749
3749
|
* `waitUntil` (no request context) means the sink falls back to fire-and-forget.
|
|
3750
3750
|
*/
|
|
3751
3751
|
interface LogSinkContext {
|
|
3752
|
+
/**
|
|
3753
|
+
* Resolves this request's detected OTLP resource attributes (`service.version`,
|
|
3754
|
+
* `cloud.region`, …) on demand, or absent when the host does not detect any.
|
|
3755
|
+
*
|
|
3756
|
+
* Deliberately a resolved, allowlisted bag behind a thunk rather than the raw
|
|
3757
|
+
* `env` and `Request` the host detected them from: this context is fanned out
|
|
3758
|
+
* to **every** registered sink, including user-authored ones, so anything
|
|
3759
|
+
* reachable here should be assumed to end up in someone's debug log — and raw
|
|
3760
|
+
* `env` is every secret binding, while a raw `Request` carries the caller's
|
|
3761
|
+
* `Authorization` and `Cookie`. The thunk keeps detection lazy (a sink that
|
|
3762
|
+
* does not want resource attributes pays nothing) and hosts are expected to
|
|
3763
|
+
* memoize it per request.
|
|
3764
|
+
*/
|
|
3765
|
+
resourceAttributes?: () => Record<string, boolean | number | string>;
|
|
3752
3766
|
/** Keep a background promise alive past the response (the request's `waitUntil`). */
|
|
3753
3767
|
waitUntil?: (promise: Promise<unknown>) => void;
|
|
3754
3768
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3749,6 +3749,20 @@ type ContextLogLevel = "debug" | "error" | "fatal" | "info" | "log" | "trace" |
|
|
|
3749
3749
|
* `waitUntil` (no request context) means the sink falls back to fire-and-forget.
|
|
3750
3750
|
*/
|
|
3751
3751
|
interface LogSinkContext {
|
|
3752
|
+
/**
|
|
3753
|
+
* Resolves this request's detected OTLP resource attributes (`service.version`,
|
|
3754
|
+
* `cloud.region`, …) on demand, or absent when the host does not detect any.
|
|
3755
|
+
*
|
|
3756
|
+
* Deliberately a resolved, allowlisted bag behind a thunk rather than the raw
|
|
3757
|
+
* `env` and `Request` the host detected them from: this context is fanned out
|
|
3758
|
+
* to **every** registered sink, including user-authored ones, so anything
|
|
3759
|
+
* reachable here should be assumed to end up in someone's debug log — and raw
|
|
3760
|
+
* `env` is every secret binding, while a raw `Request` carries the caller's
|
|
3761
|
+
* `Authorization` and `Cookie`. The thunk keeps detection lazy (a sink that
|
|
3762
|
+
* does not want resource attributes pays nothing) and hosts are expected to
|
|
3763
|
+
* memoize it per request.
|
|
3764
|
+
*/
|
|
3765
|
+
resourceAttributes?: () => Record<string, boolean | number | string>;
|
|
3752
3766
|
/** Keep a background promise alive past the response (the request's `waitUntil`). */
|
|
3753
3767
|
waitUntil?: (promise: Promise<unknown>) => void;
|
|
3754
3768
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/do",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.44",
|
|
4
4
|
"description": "Lunora Durable Objects: ShardDO (SQLite, OCC, hibernated WebSocket subscriptions) and SessionDO",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
50
|
-
"@lunora/fingerprint": "1.0.0-alpha.
|
|
49
|
+
"@lunora/errors": "1.0.0-alpha.8",
|
|
50
|
+
"@lunora/fingerprint": "1.0.0-alpha.4",
|
|
51
51
|
"@visulima/redact": "3.0.0",
|
|
52
52
|
"drizzle-orm": "^0.45.2"
|
|
53
53
|
},
|