Skip to content

feat(e2e-shared): add event status tracking and connection indicators#1281

Draft
abueide wants to merge 1 commit into
masterfrom
e2e/example-app-status
Draft

feat(e2e-shared): add event status tracking and connection indicators#1281
abueide wants to merge 1 commit into
masterfrom
e2e/example-app-status

Conversation

@abueide

@abueide abueide commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds proper event status tracking to the example app. Events now show whether they were successfully sent, are pending, or failed — with HTTP status codes displayed per event.

Changes

  • Logger plugin tracks three states: queued (orange), sent (green), failed (red) with HTTP status code
  • Client tracks dropped events via ErrorType.EventsDropped instead of blindly marking all as sent after flush
  • Connection status indicator: green (OK) when events post successfully, orange (Rejected) when server responds with error (e.g. 401), red (Unreachable) when no server response
  • Stats row shows Sent / Queued / Failed counters

Why

Previously all events were marked green after flush regardless of whether the server accepted or rejected them. With an invalid write key, events would show as "sent" even though they were dropped with a 401. This makes it possible to visually verify the SDK's error handling behavior.


🤖 Generated with Claude Code

Events now have three states: queued (orange), sent (green), failed
(red) instead of just sent/unsent. The Logger tracks HTTP status codes
per event. Connection status: green when events post successfully,
orange when server responds with an error (e.g. 401), red when server
is unreachable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abueide abueide added the feature New feature or functionality label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant