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

Add note about integrations to multiple clients js doc #10355

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

AbhiPrasad
Copy link
Member

DESCRIBE YOUR PR

Copy over integrations snippet from https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/ to https://docs.sentry.io/platforms/javascript/best-practices/multiple-sentry-instances/ page.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

@AbhiPrasad AbhiPrasad requested review from mydea and a team June 11, 2024 12:58
@AbhiPrasad AbhiPrasad self-assigned this Jun 11, 2024
@AbhiPrasad AbhiPrasad requested review from s1gr1d and removed request for a team June 11, 2024 12:58
Copy link

vercel bot commented Jun 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 4:32pm

Copy link

codecov bot commented Jun 11, 2024

Bundle Report

Changes will decrease total bundle size by 1 bytes ⬇️

Bundle name Size Change
sentry-docs-server 7.55MB 8 bytes ⬆️
sentry-docs-edge-server 475.14kB 3 bytes ⬇️
sentry-docs-client 6.21MB 6 bytes ⬇️

Copy link

@luc122c luc122c left a comment

Choose a reason for hiding this comment

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

Don't forget to update the import!

-- defaultIntegrations
++ getDefaultIntegrations

Copy link
Member

@s1gr1d s1gr1d left a comment

Choose a reason for hiding this comment

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

Looks good!

const client = new BrowserClient({
dsn: "___PUBLIC_DSN___",
transport: makeFetchTransport,
stackParser: defaultStackParser,
integrations: defaultIntegrations,
integrations: integrations,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you want to write it this way, but I leave it up to you

Suggested change
integrations: integrations,
integrations,

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about this, but this makes it especially explicit we are passing in this variable here. I'll leave this syntax for people who are less familiar with JS.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) June 12, 2024 16:13
@AbhiPrasad AbhiPrasad merged commit 5b8c978 into master Jun 12, 2024
6 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-multiple-client-integration branch June 12, 2024 16:32
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@sentry/browser - 'defaultIntegrations' does not exist, did you mean 'getDefaultIntegrations'?
4 participants