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: Add @sentry/tracing #2719

Merged
merged 18 commits into from Jul 17, 2020
Merged

Feat: Add @sentry/tracing #2719

merged 18 commits into from Jul 17, 2020

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jul 2, 2020

Create @sentry/tracing. This is what I will work off as we making our refactors to the Tracing integration.

I figured we should merge this in first so that we can concurrently work on it together.

@getsentry-bot
Copy link
Contributor

getsentry-bot commented Jul 2, 2020

Messages
📖

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

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against 384ef63

@AbhiPrasad AbhiPrasad force-pushed the abhi/ref/add-sentry-tracing branch from ab7d985 to 14eba60 Compare July 3, 2020 17:00
@AbhiPrasad AbhiPrasad marked this pull request as ready for review July 3, 2020 17:02
@AbhiPrasad AbhiPrasad requested a review from HazAT July 3, 2020 17:02
@AbhiPrasad AbhiPrasad force-pushed the abhi/ref/add-sentry-tracing branch from 8906f3a to ef59276 Compare July 3, 2020 17:20
AbhiPrasad and others added 8 commits July 14, 2020 11:53
* feat: Adjust hub for idle transaction

* feat: Add IdleTransaction class

* test: IdleTransaction

* ref: Some uneeded code

* ref: Declare class variables in constructor

* chore: Cleanup set() comments
* test: remove hub.startSpan test

* feat(tracing): Add BrowserTracing integration and tests

* fix: defaultRoutingInstrumentation

* ref: Remove static methods

* multiple before finishes

* ref: Routing Instrumentation

* remove tracing
* ref: Make React Profiler use active transaction

* ref: Make Vue Tracing using active transaction
packages/tracing/package.json Outdated Show resolved Hide resolved
Copy link
Member Author

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Are we good to merge @HazAT?

packages/apm/README.md Outdated Show resolved Hide resolved

This package contains extensions to the `@sentry/hub` to enable Sentry AM related functionality. It also provides integrations for Browser and Node that provide a good experience out of the box.

## Migrating from @sentry/apm to @sentry/tracing
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the migration guide, does this make sense?

packages/tracing/package.json Outdated Show resolved Hide resolved
export { INTEGRATIONS as Integrations };

// We are patching the global object with our hub extension methods
addExtensionMethods();
Copy link
Member Author

Choose a reason for hiding this comment

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

We still have to move this into an option, but I'll save that for another PR.

Something like

Sentry.init({
  extensions: [apm]
})

Copy link
Member

Choose a reason for hiding this comment

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

Let's deal with it on a follow up PR

@AbhiPrasad AbhiPrasad requested a review from HazAT July 17, 2020 11:22
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.

🥇

@AbhiPrasad AbhiPrasad merged commit 820bd77 into master Jul 17, 2020
@AbhiPrasad AbhiPrasad deleted the abhi/ref/add-sentry-tracing branch July 17, 2020 11:47
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