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: SDK unified API #1402

Merged
merged 5 commits into from
Jun 19, 2018
Merged

feat: SDK unified API #1402

merged 5 commits into from
Jun 19, 2018

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Jun 19, 2018

This PR makes the SDK unification paper conform

@HazAT HazAT self-assigned this Jun 19, 2018
@HazAT HazAT requested a review from kamilogorek as a code owner June 19, 2018 08:10
*/
public addEventProcessor(callback: () => (event: SentryEvent) => void): void {
const top = this.getStackTop();
if (top.scope) {
Copy link
Member

Choose a reason for hiding this comment

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

This should be top.client.

*
* If a hub is already registered in the global carrier but this module
* contains a more recent version, it replaces the registered version.
* Otherwise, the currently registered hub will be returned.
*/
export function getGlobalHub(): Hub {
const registry = getGlobalCarrier();
export function getMainHub(): Hub {
Copy link
Member

Choose a reason for hiding this comment

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

If it returns domain local data it should be getDefaultHub.

@codecov-io
Copy link

codecov-io commented Jun 19, 2018

Codecov Report

Merging #1402 into master will increase coverage by 0.63%.
The diff coverage is 98.79%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1402      +/-   ##
==========================================
+ Coverage   88.09%   88.73%   +0.63%     
==========================================
  Files          31       31              
  Lines         697      701       +4     
  Branches      105      105              
==========================================
+ Hits          614      622       +8     
+ Misses         78       74       -4     
  Partials        5        5
Impacted Files Coverage Δ
packages/node/src/sdk.ts 100% <ø> (+12.5%) ⬆️
packages/hub/src/index.ts 100% <100%> (ø) ⬆️
packages/hub/src/global.ts 100% <100%> (ø) ⬆️
packages/core/src/sdk.ts 93.75% <100%> (ø) ⬆️
packages/hub/src/scope.ts 96.29% <100%> (+0.77%) ⬆️
packages/minimal/src/index.ts 100% <100%> (+12.5%) ⬆️
packages/minimal/test/mocks/client.ts 100% <100%> (ø) ⬆️
packages/node/src/index.ts 100% <100%> (ø) ⬆️
packages/node/src/hub.ts 100% <100%> (ø) ⬆️
...ages/node/src/integrations/onunhandledrejection.ts 100% <100%> (ø) ⬆️
... and 2 more

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 deff2f0...ed965e3. Read the comment docs.

@HazAT HazAT merged commit b63f04a into master Jun 19, 2018
@HazAT HazAT deleted the feature/unified-api branch June 19, 2018 12:00
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