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

Instrumentation refactor #2323

Merged
merged 9 commits into from
Nov 27, 2019
Merged

Instrumentation refactor #2323

merged 9 commits into from
Nov 27, 2019

Conversation

kamilogorek
Copy link
Contributor

No description provided.

@getsentry-bot
Copy link
Contributor

getsentry-bot commented Nov 21, 2019

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖 ✅ TSLint passed
📖

@sentry/browser bundle gzip'ed minified size: (ES6: 15.4219 kB) (ES5: 16.3281 kB)

Generated by 🚫 dangerJS against 1721330

@HazAT HazAT marked this pull request as ready for review November 25, 2019 13:50
function instrument(type: InstrumentHandlerType): void {
if (type === 'console') {
instrumentConsole();
instrumented[type] = true;
Copy link
Member

Choose a reason for hiding this comment

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

This probably needs to go outside the if + we need a check each if if already patched.

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

packages/browser/src/instrument.ts Outdated Show resolved Hide resolved
@HazAT HazAT merged commit 4905a84 into master Nov 27, 2019
@HazAT HazAT deleted the instrumentation-refactor branch November 27, 2019 08:20
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.

None yet

3 participants