Skip to content

Add realistic e2e test app for Workers AI #24759

Description

@andreiborza

Add an e2e test app that uses the Workers AI integration the way a real user does, and that sends the data to a real Sentry project.

Current state: cloudflare-agent mocks the env.AI binding and makes no real requests. The SDK sends the spans to the local event proxy (tunnel: localhost:3031), so nothing gets to Sentry.

Requirements:

  • Use a real Workers AI binding on a real Cloudflare account (see cloudflare-workers-send-to-sentry for the deploy setup).
  • Use a real E2E_TEST_DSN with no tunnel, so the data goes to Sentry.
  • Read the gen_ai spans back through the Sentry API and check them, the same way the *-send-to-sentry apps do.

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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions