Skip to content

fix: Send diagnostic events to the diagnostic endpoint on web - #414

Merged
joker23 merged 1 commit into
skz/sdk-3443/contract-test-capabilitiesfrom
skz/web-diagnostic-events-path
Dec 1, 2026
Merged

joker23 merged 1 commit into
skz/sdk-3443/contract-test-capabilitiesfrom
skz/web-diagnostic-events-path

Conversation

@joker23

@joker23 joker23 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On web, the default diagnostic events path was the analytics path, so diagnostic events were posted to /events/bulk/<credential>. It is now /events/diagnostic/<credential>, matching the JS browser SDK. PR #380 fixed the event processor URI choice but left this path wrong.

The browser contract service now declares the diagnostic-events capability, so the v3 harness runs the new events/diagnostic events test against it.

Stacked on #360, which adds the browser contract service this PR extends.

Opened from termag


Devin Review


Note

Overview
Web clients were posting diagnostic events to the analytics bulk URL (/events/bulk/<credential>) because DefaultEventPaths.getDiagnosticEventsPath in js_config.dart matched the analytics path. It now returns /events/diagnostic/<credential>, aligning with the JS browser SDK (and fixing the gap left after PR #380’s URI selection work).

The Flutter web contract test service advertises the diagnostic-events capability so the v3 harness can run the diagnostic events contract test against the browser adapter.

Reviewed by Cursor Bugbot for commit d61e3c3. Bugbot is set up for automated code reviews on this repo. Configure here.

@joker23
joker23 added this pull request to stack #361 November 25, 2026 18:11
@joker23
joker23 marked this pull request as ready for review November 25, 2026 18:11
@joker23
joker23 requested a review from a team as a code owner November 25, 2026 18:11

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@cursor cursor Bot 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.

Risk: low. Approved under SDK rules 1–4: allowed author, not a release PR, and no disallowed workflow changes. Cursor Bugbot completed with no findings that need human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: SDK - Pull Request Router and Approver

@cursor cursor Bot added the risk:low label Nov 25, 2026

@cursor cursor Bot 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.

Risk: low.

Automated risk review (dry run): Low

This PR would be automatically approved.

Why: The change is two lines: js_config.dart now posts web diagnostic events to /events/diagnostic/ instead of /events/bulk/, and the browser contract service opts into the diagnostic-events harness. Cursor Bugbot passed with no findings.

If you disagree with this review, share this PR in #feedback-agent-approvals or submit a changes-requested review explaining why.

Open in Web View Automation 

Sent by Cursor Approval Agent: Dry-Run PR Approver

@joker23
joker23 force-pushed the skz/web-diagnostic-events-path branch from 48a2586 to 7b7be2f Compare December 1, 2026 14:32
@joker23
joker23 force-pushed the skz/web-diagnostic-events-path branch from 7b7be2f to d61e3c3 Compare December 1, 2026 14:48
@joker23
joker23 merged commit 0fdc2e0 into main Dec 1, 2026
12 checks passed
@joker23
joker23 deleted the skz/web-diagnostic-events-path branch December 1, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants