Skip to content

Cloudflare events have no runtime version and no server name #24040

Description

@isaacs

packages/cloudflare/src/client.ts:55:

// TODO: Grab version information
runtime: { name: 'cloudflare' },
// TODO: Add server name

Bun reports {name:'bun', version:'1.3.14'} and Deno reports the Deno version. Cloudflare reports neither a version nor a server_name, so events cannot be grouped or filtered by worker.

Work item. Set server_name from the script name where it is available (env binding metadata or the wrangler-injected name). For the version, either use the compatibility date if reachable at runtime or delete the TODO with a note saying workerd exposes nothing usable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions