Skip to content

feat: add diagnostic #568

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

Open
wants to merge 50 commits into
base: main
Choose a base branch
from
Open

feat: add diagnostic #568

wants to merge 50 commits into from

Conversation

Mercy811
Copy link
Contributor

Summary

https://amplitude.atlassian.net/browse/AMP-81179

Send diagnostic events when the SDK drops events

This feature is enabled by default and can be disabled by setting config.diagnosticProvider to undefined

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@Mercy811 Mercy811 force-pushed the feat-add-diagnostics branch from 18f63df to 51a5ff1 Compare August 26, 2023 00:04
@Mercy811 Mercy811 marked this pull request as ready for review August 28, 2023 17:07
Copy link
Contributor

@justin-fiedler justin-fiedler left a comment

Choose a reason for hiding this comment

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

Thanks @Mercy811. See comments. Since we only need to hook into "flush" configuring this as a Plugin is probably not needed, instead we can mostly treat it like the other providers.

We can probably use the config.transportProvider to send the diagnotics but should be careful with the storage (config.storageProvider) so these events aren't mixed with "real" events.

@Mercy811 Mercy811 force-pushed the feat-add-diagnostics branch from c7bf5fa to 417eed4 Compare October 11, 2023 21:52
@Mercy811 Mercy811 force-pushed the feat-add-diagnostics branch from 80a8114 to 4a8f99d Compare October 12, 2023 22:41
@justin-fiedler justin-fiedler self-requested a review October 27, 2023 22:19
@shweta-amplitude shweta-amplitude removed their request for review November 7, 2023 18:41
@justin-fiedler justin-fiedler self-requested a review November 8, 2023 23:15
@Mercy811 Mercy811 force-pushed the feat-add-diagnostics branch from fa718e9 to d2bbc02 Compare November 16, 2023 17:42
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.

5 participants