@wtfalch/foundry 0.58.0 → 0.59.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.
|
@@ -107,6 +107,11 @@ export interface WorkerAppUpload {
|
|
|
107
107
|
migrations?: WorkerAppMigrations;
|
|
108
108
|
/** Durable Object classes the upload marks container-enabled; absent when the entry declares no container. */
|
|
109
109
|
containers?: string[];
|
|
110
|
+
/** Workers Logs: always on, every request sampled. The adapter sends it as the upload metadata's `observability`. */
|
|
111
|
+
observability: {
|
|
112
|
+
enabled: true;
|
|
113
|
+
head_sampling_rate: 1;
|
|
114
|
+
};
|
|
110
115
|
}
|
|
111
116
|
export interface WorkerAppContainer {
|
|
112
117
|
className: string;
|
package/dist/plan/worker-app.js
CHANGED
|
@@ -526,6 +526,7 @@ export async function applyWorkerApp(deps, org, action, context) {
|
|
|
526
526
|
? [{ type: 'hyperdrive', name: WORKER_APP_HYPERDRIVE_BINDING, id: hyperdriveId }]
|
|
527
527
|
: []),
|
|
528
528
|
],
|
|
529
|
+
observability: { enabled: true, head_sampling_rate: 1 },
|
|
529
530
|
...(migrations ? { migrations } : {}),
|
|
530
531
|
...(want.containers.length > 0
|
|
531
532
|
? { containers: want.containers.map((c) => c.className) }
|