Skip to content

fix: preserve Workers log source fields#374

Open
EfeDurmaz16 wants to merge 2 commits into
cloudflare:mainfrom
EfeDurmaz16:fix/workers-log-source-passthrough
Open

fix: preserve Workers log source fields#374
EfeDurmaz16 wants to merge 2 commits into
cloudflare:mainfrom
EfeDurmaz16:fix/workers-log-source-passthrough

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

  • Preserve unknown object fields in Workers telemetry source payloads instead of stripping them during Zod parsing.
  • Add a regression test for structured console.log() fields such as event, userId, and duration values.

Context

Verification

  • pnpm --filter @repo/mcp-common test -- workers-logs.types.spec.ts
  • pnpm --filter @repo/mcp-common check:types
  • pnpm prettier packages/mcp-common/src/types/workers-logs.types.ts packages/mcp-common/src/types/workers-logs.types.spec.ts --check
  • git diff --check

Signed-off-by: EfeDurmaz16 <efebarandurmaz05@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workers Observability: custom console.log fields not returned in events view

2 participants