File tree Expand file tree Collapse file tree 11 files changed +0
-243
lines changed
platform-includes/profiling/automatic-instrumentation-setup Expand file tree Collapse file tree 11 files changed +0
-243
lines changed Original file line number Diff line number Diff line change @@ -24,25 +24,3 @@ Sentry.init({
24
24
profilesSampleRate: 1.0 ,
25
25
});
26
26
```
27
-
28
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
29
-
30
- ``` javascript
31
- const Sentry = require (" @sentry/browser" );
32
-
33
- Sentry .init ({
34
- dsn: " ___PUBLIC_DSN___" ,
35
- integrations: [
36
- // Add browser profiling integration to the list of integrations
37
- Sentry .browserTracingIntegration (),
38
- Sentry .browserProfilingIntegration (),
39
- ],
40
- tracesSampleRate: 1.0 ,
41
-
42
- // This function will be called for every sampled span
43
- // to determine if it should be profiled
44
- profilesSampler : (samplingContext ) => {
45
- return 1.0 ;
46
- },
47
- });
48
- ```
Original file line number Diff line number Diff line change @@ -24,25 +24,3 @@ Sentry.init({
24
24
profilesSampleRate: 1.0 ,
25
25
});
26
26
```
27
-
28
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
29
-
30
- ``` javascript
31
- import * as Sentry from " @sentry/angular" ;
32
-
33
- Sentry .init ({
34
- dsn: " ___PUBLIC_DSN___" ,
35
- integrations: [
36
- // Add browser profiling integration to the list of integrations
37
- Sentry .browserTracingIntegration (),
38
- Sentry .browserProfilingIntegration (),
39
- ],
40
- tracesSampleRate: 1.0 ,
41
-
42
- // This function will be called for every sampled span
43
- // to determine if it should be profiled
44
- profilesSampler : (samplingContext ) => {
45
- return 1.0 ;
46
- },
47
- });
48
- ```
Original file line number Diff line number Diff line change @@ -23,25 +23,3 @@ Sentry.init({
23
23
profilesSampleRate: 1.0 ,
24
24
});
25
25
```
26
-
27
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
28
-
29
- ``` javascript
30
- import * as Sentry from " @sentry/astro" ;
31
-
32
- Sentry .init ({
33
- dsn: " ___PUBLIC_DSN___" ,
34
- integrations: [
35
- // Add browser profiling integration to the list of integrations
36
- Sentry .browserTracingIntegration (),
37
- Sentry .browserProfilingIntegration (),
38
- ],
39
- tracesSampleRate: 1.0 ,
40
-
41
- // This function will be called for every sampled span
42
- // to determine if it should be profiled
43
- profilesSampler : (samplingContext ) => {
44
- return 1.0 ;
45
- },
46
- });
47
- ```
Original file line number Diff line number Diff line change @@ -26,25 +26,3 @@ Sentry.init({
26
26
profilesSampleRate: 1.0 ,
27
27
});
28
28
```
29
-
30
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
31
-
32
- ``` javascript
33
- const Sentry = require (" @sentry/electron/renderer" );
34
-
35
- Sentry .init ({
36
- dsn: " ___PUBLIC_DSN___" ,
37
- integrations: [
38
- // Add browser profiling integration to the list of integrations
39
- Sentry .browserTracingIntegration (),
40
- Sentry .browserProfilingIntegration (),
41
- ],
42
- tracesSampleRate: 1.0 ,
43
-
44
- // This function will be called for every sampled span
45
- // to determine if it should be profiled
46
- profilesSampler : (samplingContext ) => {
47
- return 1.0 ;
48
- },
49
- });
50
- ```
Original file line number Diff line number Diff line change @@ -23,25 +23,3 @@ Sentry.init({
23
23
profilesSampleRate: 1.0 ,
24
24
});
25
25
```
26
-
27
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
28
-
29
- ``` javascript {filename:instrumentation-client.js|ts}
30
- import * as Sentry from " @sentry/nextjs" ;
31
-
32
- Sentry .init ({
33
- dsn: " ___PUBLIC_DSN___" ,
34
- integrations: [
35
- // Add browser profiling integration to the list of integrations
36
- Sentry .browserTracingIntegration (),
37
- Sentry .browserProfilingIntegration (),
38
- ],
39
- tracesSampleRate: 1.0 ,
40
-
41
- // This function will be called for every sampled span
42
- // to determine if it should be profiled
43
- profilesSampler : (samplingContext ) => {
44
- return 1.0 ;
45
- },
46
- });
47
- ```
Original file line number Diff line number Diff line change @@ -23,25 +23,3 @@ Sentry.init({
23
23
profilesSampleRate: 1.0 ,
24
24
});
25
25
```
26
-
27
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
28
-
29
- ``` javascript {filename:sentry.client.config.js|ts}
30
- import * as Sentry from " @sentry/nuxt" ;
31
-
32
- Sentry .init ({
33
- dsn: " ___PUBLIC_DSN___" ,
34
- integrations: [
35
- // Add browser profiling integration to the list of integrations
36
- Sentry .browserTracingIntegration (),
37
- Sentry .browserProfilingIntegration (),
38
- ],
39
- tracesSampleRate: 1.0 ,
40
-
41
- // This function will be called for every sampled span
42
- // to determine if it should be profiled
43
- profilesSampler : (samplingContext ) => {
44
- return 1.0 ;
45
- },
46
- });
47
- ```
Original file line number Diff line number Diff line change @@ -24,26 +24,3 @@ Sentry.init({
24
24
profilesSampleRate: 1.0 ,
25
25
});
26
26
```
27
-
28
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
29
-
30
- ``` javascript
31
- import * as Sentry from " @sentry/react" ;
32
-
33
- Sentry .init ({
34
- dsn: " ___PUBLIC_DSN___" ,
35
- integrations: [
36
- // Add browser profiling integration to the list of integrations
37
- Sentry .browserTracingIntegration (),
38
- Sentry .browserProfilingIntegration (),
39
- ],
40
- tracesSampleRate: 1.0 ,
41
-
42
- // This function will be called for every sampled span
43
- // to determine if it should be profiled
44
- profilesSampler : (samplingContext ) => {
45
- return 1.0 ;
46
- },
47
- });
48
- ```
49
- ```
Original file line number Diff line number Diff line change @@ -24,25 +24,3 @@ Sentry.init({
24
24
profilesSampleRate: 1.0 ,
25
25
});
26
26
```
27
-
28
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
29
-
30
- ``` javascript {filename:entry.client.tsx}
31
- import * as Sentry from " @sentry/remix" ;
32
-
33
- Sentry .init ({
34
- dsn: " ___PUBLIC_DSN___" ,
35
- integrations: [
36
- // Add browser profiling integration to the list of integrations
37
- Sentry .browserTracingIntegration (),
38
- Sentry .browserProfilingIntegration (),
39
- ],
40
- tracesSampleRate: 1.0 ,
41
-
42
- // This function will be called for every sampled span
43
- // to determine if it should be profiled
44
- profilesSampler : (samplingContext ) => {
45
- return 1.0 ;
46
- },
47
- });
48
- ```
Original file line number Diff line number Diff line change @@ -24,25 +24,3 @@ Sentry.init({
24
24
profilesSampleRate: 1.0 ,
25
25
});
26
26
```
27
-
28
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
29
-
30
- ``` javascript
31
- import * as Sentry from " @sentry/svelte" ;
32
-
33
- Sentry .init ({
34
- dsn: " ___PUBLIC_DSN___" ,
35
- integrations: [
36
- // Add browser profiling integration to the list of integrations
37
- Sentry .browserTracingIntegration (),
38
- Sentry .browserProfilingIntegration (),
39
- ],
40
- tracesSampleRate: 1.0 ,
41
-
42
- // This function will be called for every sampled span
43
- // to determine if it should be profiled
44
- profilesSampler : (samplingContext ) => {
45
- return 1.0 ;
46
- },
47
- });
48
- ```
Original file line number Diff line number Diff line change @@ -23,25 +23,3 @@ Sentry.init({
23
23
profilesSampleRate: 1.0 ,
24
24
});
25
25
```
26
-
27
- Alternatively, instead of a ` profilesSampleRate ` your can also provide a ` profilesSampler ` function:
28
-
29
- ``` javascript {filename:hooks.client.js}
30
- import * as Sentry from " @sentry/sveltekit" ;
31
-
32
- Sentry .init ({
33
- dsn: " ___PUBLIC_DSN___" ,
34
- integrations: [
35
- // Add browser profiling integration to the list of integrations
36
- Sentry .browserTracingIntegration (),
37
- Sentry .browserProfilingIntegration (),
38
- ],
39
- tracesSampleRate: 1.0 ,
40
-
41
- // This function will be called for every sampled span
42
- // to determine if it should be profiled
43
- profilesSampler : (samplingContext ) => {
44
- return 1.0 ;
45
- },
46
- });
47
- ```
You can’t perform that action at this time.
0 commit comments