You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/remix/manual-setup.mdx
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@ description: "Learn how to set up the SDK manually."
6
6
7
7
If you can't (or prefer not to) run the [automatic setup](/platforms/javascript/guides/remix/#install), you can follow the instructions below to configure your application.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/sveltekit/manual-setup.mdx
+17-15Lines changed: 17 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: "Learn how to set up the SDK manually."
6
6
7
7
If you can't (or prefer not to) run the <PlatformLinkto="/#install">automatic setup</PlatformLink>, you can follow the instructions below to configure the Sentry SvelteKit SDK in your application. This guide is also useful to adjust the pre-set configuration if you used the installation wizard for automatic setup.
8
8
9
-
## Installation
9
+
## Install
10
10
11
11
```bash {tabTitle:npm}
12
12
npm install --save @sentry/sveltekit
@@ -22,7 +22,9 @@ pnpm add @sentry/sveltekit
22
22
23
23
If you're updating your Sentry SDK to the latest version, check out our [migration guide](https://github.com/getsentry/sentry-javascript/blob/master/MIGRATION.md) to learn more about breaking changes.
24
24
25
-
## Client-side Setup
25
+
## Configure
26
+
27
+
### Client-side Setup
26
28
27
29
1. If you don't already have a [client hooks](https://kit.svelte.dev/docs/hooks#shared-hooks) file, create a new one in `src/hooks.client.(js|ts)`.
Add the `sentrySvelteKit` plugins to your `vite.config.(js|ts)` file so the Sentry SDK can apply build-time features.
163
165
Make sure that it is added _before_ the sveltekit plugin:
@@ -187,7 +189,7 @@ The `sentrySvelteKit()` function adds Vite plugins to your Vite config to:
187
189
- Automatically upload source maps to Sentry
188
190
- Automatically instrument `load` functions for tracing
189
191
190
-
## Configure Source Maps Upload
192
+
###Configure Source Maps Upload
191
193
192
194
By default, `sentrySvelteKit()` will add an instance of the [Sentry Vite Plugin](https://www.npmjs.com/package/@sentry/vite-plugin), to upload source maps for both server and client builds. This means that when you run a production build (`npm run build`), source maps will be generated and uploaded to Sentry, so that you get readable stack traces in your Sentry issues.
193
195
@@ -255,7 +257,7 @@ export default {
255
257
256
258
Using the `sourceMapsUploadOptions` object is useful if the default source maps upload doesn't work out of the box, for instance, if you have a customized build setup or if you're using the SDK with a SvelteKit adapter other than the [supported adapters](../#compatibility).
257
259
258
-
### Overriding SvelteKit Adapter detection
260
+
####Overriding SvelteKit Adapter detection
259
261
260
262
By default, `sentrySvelteKit` will try to detect your SvelteKit adapter to configure source maps upload correctly.
261
263
If you're not using one of the [supported adapters](../#compatibility) or the wrong one is detected, you can override the adapter detection by passing the `adapter` option to `sentrySvelteKit`:
@@ -290,7 +292,7 @@ export default {
290
292
};
291
293
```
292
294
293
-
### Disable Source Maps Upload
295
+
####Disable Source Maps Upload
294
296
295
297
You can disable automatic source maps upload in your Vite config:
296
298
@@ -326,7 +328,7 @@ export default {
326
328
327
329
If you disable automatic source maps upload, you must explicitly set a `release` value in your `Sentry.init()` configs. You can also skip the `sentry-cli` configuration step below.
328
330
329
-
## Configure Auto-Instrumentation
331
+
###Configure Auto-Instrumentation
330
332
331
333
The SDK primarily uses [SvelteKit's hooks](https://kit.svelte.dev/docs/hooks) to collect error and performance data. However, SvelteKit doesn't yet offer a hook for universal or server-only `load` function calls. Therefore, the SDK uses a Vite plugin to auto-instrument `load` functions so that you don't have to add a Sentry wrapper to each function manually.
332
334
@@ -339,7 +341,7 @@ If you have custom Sentry code in these files, you'll have to [manually](#instru
339
341
340
342
</Note>
341
343
342
-
### Customize Auto-instrumentation
344
+
####Customize Auto-instrumentation
343
345
344
346
By passing the `autoInstrument` option to `sentrySvelteKit` you can disable auto-instrumentation entirely, or customize which `load` functions should be instrumented:
345
347
@@ -379,7 +381,7 @@ export default {
379
381
};
380
382
```
381
383
382
-
### Disable Auto-instrumentation
384
+
####Disable Auto-instrumentation
383
385
384
386
If you set the `autoInstrument` option to `false`, the SDK won't auto-instrument any `load` functions. You can still [manually instrument](#instrument-load-functions-manually) specific `load` functions.
385
387
@@ -413,11 +415,11 @@ export default {
413
415
};
414
416
```
415
417
416
-
### Instrument `load` Functions Manually
418
+
####Instrument `load` Functions Manually
417
419
418
420
If you don't want to use auto-instrumentation, you can also manually instrument specific `load` functions with the SDK's `load` function wrappers.
419
421
420
-
#### Universal `load` Functions
422
+
#####Universal `load` Functions
421
423
422
424
Use the `wrapLoadWithSentry` function to wrap universal `load` functions declared in `+page.(js|ts)` or `+layout.(js|ts)`
If you do not want to inject the script responsible for instrumenting client-side `load` calls, you can disable injection by passing `injectFetchProxyScript: false` to `sentryHandle`:
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/wasm/index.mdx
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,19 @@ categories:
9
9
10
10
Sentry's Wasm integration enhances the Browser SDK, and allows it to provide more detailed debug information not only for the error itself, but also for the entire module it was executed from. It includes things like Debug IDs, Debug Files, Code IDs, Code Files and memory addresses.
11
11
12
-
###Install
12
+
## Install
13
13
14
14
Install `@sentry/browser` and `@sentry/wasm` using `yarn` or `npm`:
15
15
16
-
```bash {tabTitle:npm}
17
-
npm install --save @sentry/browser @sentry/wasm
18
-
```
19
-
20
16
```bash {tabTitle:Yarn}
21
17
yarn add @sentry/browser @sentry/wasm
22
18
```
23
19
24
-
and afterwards use it like this:
20
+
```bash {tabTitle:npm}
21
+
npm install --save @sentry/browser @sentry/wasm
22
+
```
23
+
24
+
## Configure
25
25
26
26
<SignInNote />
27
27
@@ -31,22 +31,26 @@ import { wasmIntegration } from "@sentry/wasm";
31
31
32
32
Sentry.init({
33
33
dsn:"___PUBLIC_DSN___",
34
-
integrations: [wasmIntegration()],
34
+
integrations: [
35
+
wasmIntegration()
36
+
],
35
37
});
38
+
```
36
39
37
-
// Now, whenever any code from WebAssembly module will throw an error,
38
-
// it'll get captured and it'll contain all the necessary information.
40
+
## Verify
39
41
42
+
Now, whenever any code from WebAssembly module will throw an error, it'll get captured, and it'll contain all the necessary information.
Copy file name to clipboardExpand all lines: docs/platforms/php/index.mdx
+4-12Lines changed: 4 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -3,28 +3,23 @@ title: PHP
3
3
sdk: sentry.php
4
4
caseStyle: snake_case
5
5
supportLevel: production
6
-
description: PHP (or Hypertext Preprocessor) is an open source, general-purpose scripting language that's well-suited for web development. It can be embedded into HTML.
6
+
description: PHP (or Hypertext Preprocessor) is an open source, general-purpose scripting language that's well-suited for web development. It can be embedded into HTML.
7
7
---
8
8
9
-
10
-
On this page, we get you up and running with Sentry's PHP SDK, automatically reporting errors and exceptions in your application.
9
+
On this page, we get you up and running with Sentry's PHP SDK, automatically reporting errors and exceptions in your application. The SDK provides support for PHP 7.2 or later. If you're using a previous version of the PHP SDK, you can access the <Linkrel="nofollow"to="/platforms/php/legacy-sdk/">legacy SDK documentation</Link>.
11
10
12
11
<Note>
13
12
14
13
If you don't already have an account and Sentry project established, head over to [sentry.io](https://sentry.io/signup/), then return to this page.
15
14
16
15
</Note>
17
16
18
-
Using a framework? Check out the other SDKs we support in the left-hand dropdown.
19
-
20
17
<GuideGridplatform="php" />
21
18
22
-
## Configure the PHP SDK
23
-
24
-
The below Sentry PHP SDK provides support for PHP 7.2 or later. If you're using a previous version of the PHP SDK, you can access the <Linkrel="nofollow"to="/platforms/php/legacy-sdk/">legacy SDK documentation</Link>.
25
-
26
19
Sentry captures data by using an SDK within your application’s runtime. Our SDKs are platform-specific and allow Sentry to have a deep understanding of how your application works.
27
20
21
+
## Install
22
+
28
23
<OnboardingOptionButtons
29
24
options={[
30
25
'error-monitoring',
@@ -33,9 +28,6 @@ Sentry captures data by using an SDK within your application’s runtime. Our SD
33
28
]}
34
29
/>
35
30
36
-
## Install
37
-
In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/profiling/). To enable tracing and/or profiling, click the corresponding checkmarks to get the code snippets.
38
-
39
31
Install the SDK using [Composer](https://getcomposer.org/).
0 commit comments