Skip to content

feat(browser): Client Report Support #3955

Merged
kamilogorek merged 3 commits into
masterfrom
client-report
Sep 20, 2021
Merged

feat(browser): Client Report Support #3955
kamilogorek merged 3 commits into
masterfrom
client-report

Conversation

@kamilogorek

@kamilogorek kamilogorek commented Sep 3, 2021

Copy link
Copy Markdown
Contributor

This adds support for client reports to the Browser SDK. This will cause the SDK to send a report once the tab goes hidden or has been closed and will send it as a separate envelope.

The feature can be turned off via the sendClientReports option which is on by default.

Refs:
getsentry/relay#1074
getsentry/sentry-python#1181

Comment thread packages/browser/src/transports/base.ts
Comment thread packages/types/src/transport.ts Outdated
Comment thread packages/types/src/transport.ts Outdated
@github-actions

github-actions Bot commented Sep 3, 2021

Copy link
Copy Markdown
Contributor

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 22.23 KB (0%)
@sentry/browser - Webpack 23.22 KB (0%)
@sentry/react - Webpack 23.26 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.67 KB (0%)

Comment thread packages/core/src/baseclient.ts Outdated

@AbhiPrasad AbhiPrasad 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.

Quick review, will do in more detail after DACI is ✅

Comment thread packages/browser/src/transports/base.ts
Comment thread packages/browser/src/transports/base.ts
Comment thread packages/browser/src/transports/base.ts
Comment thread packages/core/src/baseclient.ts Outdated

@iker-barriocanal iker-barriocanal 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.

Haven't looked at tests yet.

Comment thread packages/types/src/transport.ts Outdated
Comment thread packages/types/src/options.ts
Comment thread packages/browser/src/transports/base.ts Outdated
Comment thread packages/browser/src/transports/base.ts Outdated
Comment thread packages/browser/src/transports/base.ts Outdated
@kamilogorek kamilogorek force-pushed the client-report branch 2 times, most recently from e107443 to 7d924e7 Compare September 8, 2021 12:39
Comment thread packages/browser/src/transports/base.ts
@kamilogorek kamilogorek changed the title feat(browser): SDK Outcomes feat(browser): Client Report Support Sep 9, 2021
@kamilogorek kamilogorek marked this pull request as ready for review September 9, 2021 15:32
@kamilogorek kamilogorek force-pushed the client-report branch 6 times, most recently from cd5162c to 0e585c2 Compare September 10, 2021 11:23

@AbhiPrasad AbhiPrasad 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.

Ok nice, I think we are good to go

Comment thread packages/browser/src/transports/base.ts
Comment thread packages/browser/src/transports/fetch.ts
@kamilogorek

Copy link
Copy Markdown
Contributor Author

We'll cut the beta release from this branch, so I will hold with merging it to master.

@iker-barriocanal iker-barriocanal 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.

LGTM, just minor feedback.

Comment thread packages/types/src/transport.ts Outdated
Comment thread packages/browser/src/transports/fetch.ts
Comment thread packages/browser/test/unit/transports/fetch.test.ts
Comment thread packages/browser/test/unit/transports/fetch.test.ts
Comment thread packages/browser/src/transports/xhr.ts
@iker-barriocanal

Copy link
Copy Markdown
Contributor

🚀

@kamilogorek kamilogorek force-pushed the client-report branch 2 times, most recently from 73480d5 to a7eaf2f Compare September 15, 2021 10:18
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