Skip to content

feat(debug): Debug log of forwarded events#704

Merged
gioboa merged 6 commits into
QwikDev:mainfrom
mws19901118:debug-log-forwarded-events
May 22, 2026
Merged

feat(debug): Debug log of forwarded events#704
gioboa merged 6 commits into
QwikDev:mainfrom
mws19901118:debug-log-forwarded-events

Conversation

@mws19901118

Copy link
Copy Markdown
Contributor

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests

Description

Adds a new logForwardedEvents config flag (debug mode required) that logs all forwarded event activity on both the main thread and web worker:

  • Main: "Forward event: fn()" for live calls
  • Main: "Forward queued event: fn()" for calls replayed from queue
  • Worker: "Forwarded event received: fn()"
  • Worker: "Forwarded event execute: fn(args...)"

Use cases and why

Personally, I find such debug print useful when I was investigating a GTM data layer events timing issue under Partytown.

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

mws19901118 and others added 3 commits March 13, 2026 21:39
Adds a new `logForwardedEvents` config flag (debug mode required) that
logs all forwarded event activity on both the main thread and web worker:
- Main: "Forward event: fn()" for live calls
- Main: "Forward queued event: fn()" for calls replayed from queue
- Worker: "Forwarded event received: fn()"
- Worker: "Forwarded event execute: fn(args...)"

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Mar 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 54df5ba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@qwik.dev/partytown Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@YounesBouyhouline YounesBouyhouline left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

window.partytown

@gioboa gioboa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👏 Thanks for your help @mws19901118
Can you update the doc page too docs/src/routes/debugging/index.mdx ?

@mws19901118

Copy link
Copy Markdown
Contributor Author

LGTM 👏 Thanks for your help @mws19901118 Can you update the doc page too docs/src/routes/debugging/index.mdx ?

Thanks for your review, just updated doc.

@gioboa gioboa merged commit 91a7939 into QwikDev:main May 22, 2026
6 checks passed
@mws19901118 mws19901118 deleted the debug-log-forwarded-events branch May 22, 2026 07:23
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.

4 participants