Skip to content

Commit 76bb9f9

Browse files
feat(node): add Effect integration for tracing and error capture
1 parent 190e068 commit 76bb9f9

File tree

59 files changed

+1762
-2174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1762
-2174
lines changed

CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,15 @@ Work in this release was contributed by @0xbad0c0d3 and @alSergey. Thank you for
318318
// server/plugins/sentry-cloudflare-setup.ts (filename does not matter)
319319
import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins';
320320
321-
export default defineNitroPlugin(sentryCloudflareNitroPlugin((nitroApp: NitroApp) => {
322-
// You can access nitroApp here if needed
323-
return ({
324-
dsn: 'https://dsn',
325-
tracesSampleRate: 1.0,
326-
})
327-
}))
321+
export default defineNitroPlugin(
322+
sentryCloudflareNitroPlugin((nitroApp: NitroApp) => {
323+
// You can access nitroApp here if needed
324+
return {
325+
dsn: 'https://dsn',
326+
tracesSampleRate: 1.0,
327+
};
328+
}),
329+
);
328330
```
329331

330332
### Other Changes

dev-packages/browser-integration-tests/suites/integrations/moduleMetadata/appliesMetadata/subject.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ var _sentryModuleMetadataGlobal =
22
typeof window !== 'undefined'
33
? window
44
: typeof global !== 'undefined'
5-
? global
6-
: typeof self !== 'undefined'
7-
? self
8-
: {};
5+
? global
6+
: typeof self !== 'undefined'
7+
? self
8+
: {};
99

1010
_sentryModuleMetadataGlobal._sentryModuleMetadata = _sentryModuleMetadataGlobal._sentryModuleMetadata || {};
1111

dev-packages/browser-integration-tests/suites/integrations/moduleMetadata/appliesMetadataWithRewriteFrames/subject.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ var _sentryModuleMetadataGlobal =
22
typeof window !== 'undefined'
33
? window
44
: typeof global !== 'undefined'
5-
? global
6-
: typeof self !== 'undefined'
7-
? self
8-
: {};
5+
? global
6+
: typeof self !== 'undefined'
7+
? self
8+
: {};
99

1010
_sentryModuleMetadataGlobal._sentryModuleMetadata = _sentryModuleMetadataGlobal._sentryModuleMetadata || {};
1111

dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@ sentryTest('allows to ignore mutations via `ignoreMutations` option', async ({ g
2626
const requests = await requestsPromise;
2727

2828
// All transform mutatinos are ignored and not captured
29-
const transformMutations = requests.replayRecordingSnapshots.filter(
30-
item =>
31-
(item.data as mutationData)?.attributes?.some(
32-
attr => attr.attributes['style'] && attr.attributes['class'] !== 'moved',
33-
),
29+
const transformMutations = requests.replayRecordingSnapshots.filter(item =>
30+
(item.data as mutationData)?.attributes?.some(
31+
attr => attr.attributes['style'] && attr.attributes['class'] !== 'moved',
32+
),
3433
);
3534

3635
// Should capture the final class mutation
37-
const classMutations = requests.replayRecordingSnapshots.filter(
38-
item => (item.data as mutationData)?.attributes?.some(attr => attr.attributes['class']),
36+
const classMutations = requests.replayRecordingSnapshots.filter(item =>
37+
(item.data as mutationData)?.attributes?.some(attr => attr.attributes['class']),
3938
);
4039

4140
expect(transformMutations).toEqual([]);

dev-packages/browser-integration-tests/utils/helpers.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,10 @@ export const countEnvelopes = async (
137137

138138
page.on('request', requestHandler);
139139

140-
setTimeout(
141-
() => {
142-
page.off('request', requestHandler);
143-
resolve(reqCount);
144-
},
145-
options?.timeout || 1000,
146-
);
140+
setTimeout(() => {
141+
page.off('request', requestHandler);
142+
resolve(reqCount);
143+
}, options?.timeout || 1000);
147144
});
148145

149146
if (options?.url) {

dev-packages/cloudflare-integration-tests/vite.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig({
2525
reporters: process.env.DEBUG
2626
? ['default', { summary: false }]
2727
: process.env.GITHUB_ACTIONS
28-
? ['dot', 'github-actions']
29-
: ['verbose'],
28+
? ['dot', 'github-actions']
29+
: ['verbose'],
3030
},
3131
});

dev-packages/e2e-tests/test-applications/ember-classic/app/styles/app.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ body {
1717
background-repeat: repeat;
1818
height: 100%;
1919
margin: 0;
20-
font-family:
21-
Rubik,
22-
Avenir Next,
23-
Helvetica Neue,
24-
sans-serif;
20+
font-family: Rubik, Avenir Next, Helvetica Neue, sans-serif;
2521
font-size: 16px;
2622
line-height: 24px;
2723
color: var(--foreground-color);
@@ -47,9 +43,7 @@ body {
4743
.box {
4844
background-color: #fff;
4945
border: 0;
50-
box-shadow:
51-
0 0 0 1px rgba(0, 0, 0, 0.08),
52-
0 1px 4px rgba(0, 0, 0, 0.1);
46+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.1);
5347
border-radius: 4px;
5448
display: flex;
5549
width: 100%;

dev-packages/e2e-tests/test-applications/ember-embroider/app/styles/app.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ body {
1717
background-repeat: repeat;
1818
height: 100%;
1919
margin: 0;
20-
font-family:
21-
Rubik,
22-
Avenir Next,
23-
Helvetica Neue,
24-
sans-serif;
20+
font-family: Rubik, Avenir Next, Helvetica Neue, sans-serif;
2521
font-size: 16px;
2622
line-height: 24px;
2723
color: var(--foreground-color);
@@ -47,9 +43,7 @@ body {
4743
.box {
4844
background-color: #fff;
4945
border: 0;
50-
box-shadow:
51-
0 0 0 1px rgba(0, 0, 0, 0.08),
52-
0 1px 4px rgba(0, 0, 0, 0.1);
46+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.1);
5347
border-radius: 4px;
5448
display: flex;
5549
width: 100%;

dev-packages/e2e-tests/test-applications/vue-3/src/assets/base.css

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,10 @@ body {
6262
min-height: 100vh;
6363
color: var(--color-text);
6464
background: var(--color-background);
65-
transition:
66-
color 0.5s,
67-
background-color 0.5s;
65+
transition: color 0.5s, background-color 0.5s;
6866
line-height: 1.6;
69-
font-family:
70-
Inter,
71-
-apple-system,
72-
BlinkMacSystemFont,
73-
'Segoe UI',
74-
Roboto,
75-
Oxygen,
76-
Ubuntu,
77-
Cantarell,
78-
'Fira Sans',
79-
'Droid Sans',
80-
'Helvetica Neue',
81-
sans-serif;
67+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans',
68+
'Droid Sans', 'Helvetica Neue', sans-serif;
8269
font-size: 15px;
8370
text-rendering: optimizeLegibility;
8471
-webkit-font-smoothing: antialiased;

dev-packages/node-core-integration-tests/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig({
2525
reporters: process.env.DEBUG
2626
? ['default', { summary: false }]
2727
: process.env.GITHUB_ACTIONS
28-
? ['dot', 'github-actions']
29-
: ['verbose'],
28+
? ['dot', 'github-actions']
29+
: ['verbose'],
3030
},
3131
});

0 commit comments

Comments
 (0)