import { r as WorkspaceObserver } from "../shared-DYgflRlD.js"; //#region src/observe/cloudflare.d.ts interface CloudflareObserverOptions { /** * The runtime's user-tracing handle. Pass `ctx.tracing` from inside a * Worker or Durable Object, or `tracing` imported from * `cloudflare:workers`. `undefined` is accepted because the runtime * omits the property in environments without the user-tracing * feature flag; the adapter then degrades to a pass-through. */ tracing: Tracing | undefined; } /** * Build a `WorkspaceObserver` backed by the Cloudflare runtime's built-in * user tracing surface. * * When `tracing` is `undefined`, returns an observer that runs the * callback directly with a span object whose `setAttribute` is a no-op. * This lets the same wiring code work in environments without the * user-tracing feature flag, without forcing callers to branch on a * possibly-undefined `ctx.tracing`. */ declare function createCloudflareObserver(options: CloudflareObserverOptions): WorkspaceObserver; //#endregion export { CloudflareObserverOptions, createCloudflareObserver }; //# sourceMappingURL=cloudflare.d.ts.map