@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;
@@ -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) }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtfalch/foundry",
3
- "version": "0.58.0",
3
+ "version": "0.59.0",
4
4
  "description": "Foundry's SDK: the declared org's types, the plan and apply contracts, and the state store's interface.",
5
5
  "repository": {
6
6
  "type": "git",