Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add more debug signals #1743

Merged
merged 4 commits into from
Feb 17, 2025
Merged

feat: add more debug signals #1743

merged 4 commits into from
Feb 17, 2025

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Feb 17, 2025

it can be tricky to know what is happening when users report errors

let's add more debug signals

Screenshot 2025-02-17 at 12 40 01

needs a follow-up to add these to core definitions

Copy link

vercel bot commented Feb 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Feb 17, 2025 2:20pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here: app.greptile.com/review/github.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +995 to +998
properties['$sdk_debug_replay_internal_buffer_length'] = this.sessionRecording['buffer'].data.length
properties['$sdk_debug_replay_internal_buffer_size'] = this.sessionRecording['buffer'].size
}
properties['$sdk_debug_retry_queue_size'] = this._retryQueue?.['queue']?.length
Copy link
Member Author

Choose a reason for hiding this comment

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

this should give us a view on how much data replay is currently holding
and whether the SDK retry queue is high

hopefully giving signal that e.g. network requests to send data are failing in replay
when smaller event data might be succeeding

Copy link

github-actions bot commented Feb 17, 2025

Size Change: +3.48 kB (+0.11%)

Total Size: 3.31 MB

Filename Size Change
dist/array.full.es5.js 269 kB +348 B (+0.13%)
dist/array.full.js 372 kB +348 B (+0.09%)
dist/array.full.no-external.js 370 kB +348 B (+0.09%)
dist/array.js 184 kB +348 B (+0.19%)
dist/array.no-external.js 182 kB +348 B (+0.19%)
dist/main.js 185 kB +348 B (+0.19%)
dist/module.full.js 372 kB +348 B (+0.09%)
dist/module.full.no-external.js 370 kB +348 B (+0.09%)
dist/module.js 184 kB +348 B (+0.19%)
dist/module.no-external.js 182 kB +348 B (+0.19%)
ℹ️ View Unchanged
Filename Size
dist/all-external-dependencies.js 216 kB
dist/customizations.full.js 14 kB
dist/dead-clicks-autocapture.js 14.5 kB
dist/exception-autocapture.js 9.51 kB
dist/external-scripts-loader.js 2.64 kB
dist/recorder-v2.js 115 kB
dist/recorder.js 115 kB
dist/surveys-preview.js 69.7 kB
dist/surveys.js 72.7 kB
dist/tracing-headers.js 1.76 kB
dist/web-vitals.js 10.4 kB

compressed-size-action

@pauldambra pauldambra added the bump patch Bump patch version when this PR gets merged label Feb 17, 2025
@pauldambra pauldambra merged commit 8a90147 into main Feb 17, 2025
25 checks passed
@pauldambra pauldambra deleted the feat/more-debug-signal branch February 17, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants