getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
333 stars 1.47k forks source link

Fix the snippet from the example on how to set up the browser tracing integration #11843

Closed jakubadamw closed 3 days ago

jakubadamw commented 6 days ago

This PR fixes one JS snippet from the chapter on the browser tracing integration. Sentry.browserTracingIntegration() is a function, not a constructor. like here.

PRE-MERGE CHECKLIST

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

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.

vercel[bot] commented 6 days ago

@jakubadamw is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 4 days ago

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 Nov 18, 2024 6:49pm
2 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **changelog** | ⬜️ Ignored ([Inspect](https://vercel.com/sentry/changelog/2ycmkJwbEZBF7UG2Jf1fQSU9i23U)) | [Visit Preview](https://changelog-git-fork-jakubadamw-fix-browsertracing-example.sentry.dev) | | Nov 18, 2024 6:49pm | | **develop-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/sentry/develop-docs/DATCBiwGTqAKj1MPV1ggFSeNHURy)) | [Visit Preview](https://develop-docs-git-fork-jakubadamw-fix-browsertracing-example.sentry.dev) | | Nov 18, 2024 6:49pm |