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: LinkedErrors integration for Node #1511

Merged
merged 1 commit into from
Sep 6, 2018
Merged

Conversation

kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek commented Sep 5, 2018

See discussion on #1401 (comment)

It has to be ported to the browser though, as extracting stackframe is slightly different there and we cannot reuse exactly the same code.

@kamilogorek kamilogorek changed the title feat: LinkedErrors integration feat: LinkedErrors integration for Node Sep 5, 2018
@codecov-io
Copy link

codecov-io commented Sep 5, 2018

Codecov Report

Merging #1511 into master will increase coverage by 0.57%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1511      +/-   ##
==========================================
+ Coverage   73.08%   73.65%   +0.57%     
==========================================
  Files          44       45       +1     
  Lines        1330     1359      +29     
  Branches      250      256       +6     
==========================================
+ Hits          972     1001      +29     
  Misses        350      350              
  Partials        8        8
Impacted Files Coverage Δ
packages/node/src/sdk.ts 100% <ø> (ø) ⬆️
packages/node/src/integrations/linkederrors.ts 100% <100%> (ø)
packages/node/src/integrations/index.ts 100% <100%> (ø) ⬆️
packages/node/src/parsers.ts 84.69% <100%> (+0.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebd4fff...b3188f0. Read the comment docs.

@@ -0,0 +1,71 @@
import { getCurrentHub } from '@sentry/hub';
Copy link
Member

Choose a reason for hiding this comment

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

we always need import { getCurrentHub } from '../hub'; in node, since the current hub could live on a domain.

import { Integration, SentryEvent, SentryEventHint, SentryException } from '@sentry/types';
import { getExceptionFromError } from '../parsers';

/** JSDoc */
Copy link
Member

@HazAT HazAT Sep 6, 2018

Choose a reason for hiding this comment

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

🙈 -> Doc please

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