Skip to content

Commit 21e0d6a

Browse files
committed
add instument.server.mjs
1 parent a8ca1c5 commit 21e0d6a

File tree

4 files changed

+114
-104
lines changed

4 files changed

+114
-104
lines changed

apps/nuxt/package.json

+13-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@
66
"build": "nuxt build",
77
"dev": "nuxt dev",
88
"generate": "nuxt generate",
9-
"preview": "nuxt preview",
9+
"preview": "NODE_OPTIONS='--import ./public/instrument.server.mjs' nuxt preview",
1010
"postinstall": "nuxt prepare",
1111
"clean": "npx nuxi cleanup"
1212
},
1313
"dependencies": {
14-
"@sentry/nuxt": "file:.yalc/@sentry/nuxt",
15-
"nuxt": "^3.12.2",
16-
"vue": "^3.4.29",
17-
"vue-router": "^4.3.3"
14+
"@sentry/nuxt": "8.17.0",
15+
"nuxt": "^3.12.2"
16+
},
17+
"//": {
18+
"yalc deps (for testing)": {
19+
"@sentry/browser": "file:.yalc/@sentry/browser",
20+
"@sentry/core": "file:.yalc/@sentry/core",
21+
"@sentry/node": "file:.yalc/@sentry/node",
22+
"@sentry/nuxt": "file:.yalc/@sentry/nuxt",
23+
"@sentry/utils": "file:.yalc/@sentry/utils",
24+
"@sentry/vue": "file:.yalc/@sentry/vue"
25+
}
1826
}
1927
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as Sentry from '@sentry/nuxt';
2+
3+
if(process.env.SENTRY_DSN) {
4+
Sentry.init({
5+
dsn: process.env.SENTRY_DSN,
6+
tracesSampleRate: 1,
7+
debug: true,
8+
});
9+
}

apps/nuxt/sentry.server.config.js

-7
This file was deleted.

yarn.lock

+92-92
Original file line numberDiff line numberDiff line change
@@ -3177,7 +3177,7 @@ __metadata:
31773177
languageName: node
31783178
linkType: hard
31793179

3180-
"@nuxt/kit@npm:^3.12.3":
3180+
"@nuxt/kit@npm:^3.12.2":
31813181
version: 3.12.3
31823182
resolution: "@nuxt/kit@npm:3.12.3"
31833183
dependencies:
@@ -4716,14 +4716,14 @@ __metadata:
47164716
languageName: node
47174717
linkType: hard
47184718

4719-
"@sentry-internal/browser-utils@npm:8.14.0":
4720-
version: 8.14.0
4721-
resolution: "@sentry-internal/browser-utils@npm:8.14.0"
4719+
"@sentry-internal/browser-utils@npm:8.16.0":
4720+
version: 8.16.0
4721+
resolution: "@sentry-internal/browser-utils@npm:8.16.0"
47224722
dependencies:
4723-
"@sentry/core": "npm:8.14.0"
4724-
"@sentry/types": "npm:8.14.0"
4725-
"@sentry/utils": "npm:8.14.0"
4726-
checksum: 10c0/947ed02fb015bedada505f88a9cdb54077f475a6f5bbe25182a56ee53a86802a3860d2c689a9e0a426056e302ef05c66aac75249667890129539b1c4cb2ecb93
4723+
"@sentry/core": "npm:8.16.0"
4724+
"@sentry/types": "npm:8.16.0"
4725+
"@sentry/utils": "npm:8.16.0"
4726+
checksum: 10c0/46ab5d40ccbdf79c2fe7025d14cf13ca9f689d0197173c280e9365f640d620f071b385716c2b90fd9df8d5087b742b30fecc2013d323b56d8f3324efa95cf492
47274727
languageName: node
47284728
linkType: hard
47294729

@@ -4738,14 +4738,14 @@ __metadata:
47384738
languageName: node
47394739
linkType: hard
47404740

4741-
"@sentry-internal/feedback@npm:8.14.0":
4742-
version: 8.14.0
4743-
resolution: "@sentry-internal/feedback@npm:8.14.0"
4741+
"@sentry-internal/feedback@npm:8.16.0":
4742+
version: 8.16.0
4743+
resolution: "@sentry-internal/feedback@npm:8.16.0"
47444744
dependencies:
4745-
"@sentry/core": "npm:8.14.0"
4746-
"@sentry/types": "npm:8.14.0"
4747-
"@sentry/utils": "npm:8.14.0"
4748-
checksum: 10c0/d05b521d052b13ac4d7eacc10e1b434a19eb2fb814c8ff7a192ba145faba2173b9c6f49947cda78154e1952c4eacc3eeafba3eeab2f9638e0e7a81f259d76ccb
4745+
"@sentry/core": "npm:8.16.0"
4746+
"@sentry/types": "npm:8.16.0"
4747+
"@sentry/utils": "npm:8.16.0"
4748+
checksum: 10c0/6f677eff9b784743fe7cab7607af6e756c62a1db722d39f835aa99353614b6602864ba7e8a73a76434db0e47022c52a56b24d0d0993ac39cfbf0bf48bdfd4faf
47494749
languageName: node
47504750
linkType: hard
47514751

@@ -4760,15 +4760,15 @@ __metadata:
47604760
languageName: node
47614761
linkType: hard
47624762

4763-
"@sentry-internal/replay-canvas@npm:8.14.0":
4764-
version: 8.14.0
4765-
resolution: "@sentry-internal/replay-canvas@npm:8.14.0"
4763+
"@sentry-internal/replay-canvas@npm:8.16.0":
4764+
version: 8.16.0
4765+
resolution: "@sentry-internal/replay-canvas@npm:8.16.0"
47664766
dependencies:
4767-
"@sentry-internal/replay": "npm:8.14.0"
4768-
"@sentry/core": "npm:8.14.0"
4769-
"@sentry/types": "npm:8.14.0"
4770-
"@sentry/utils": "npm:8.14.0"
4771-
checksum: 10c0/e406806af8ba7b819c50eb91cfcb60a320209623aae5a8f9322344f66625f99c680850d9bbe1c44e2210bd7a5db9b2296cb001714233716b4ed776906e11980f
4767+
"@sentry-internal/replay": "npm:8.16.0"
4768+
"@sentry/core": "npm:8.16.0"
4769+
"@sentry/types": "npm:8.16.0"
4770+
"@sentry/utils": "npm:8.16.0"
4771+
checksum: 10c0/8d215c16e95bac8aa832018f3697ce458f122903a8f4d06c45bc67f0a2a89bf3343620d9214d12e381cb091d7766a519e1fd5e02fce0e364a5a211dc237eeb87
47724772
languageName: node
47734773
linkType: hard
47744774

@@ -4784,15 +4784,15 @@ __metadata:
47844784
languageName: node
47854785
linkType: hard
47864786

4787-
"@sentry-internal/replay@npm:8.14.0":
4788-
version: 8.14.0
4789-
resolution: "@sentry-internal/replay@npm:8.14.0"
4787+
"@sentry-internal/replay@npm:8.16.0":
4788+
version: 8.16.0
4789+
resolution: "@sentry-internal/replay@npm:8.16.0"
47904790
dependencies:
4791-
"@sentry-internal/browser-utils": "npm:8.14.0"
4792-
"@sentry/core": "npm:8.14.0"
4793-
"@sentry/types": "npm:8.14.0"
4794-
"@sentry/utils": "npm:8.14.0"
4795-
checksum: 10c0/36a364cd756f30a7200abdfe4f68098da36a3c144090ac2489426b72d5cd8bd523b0ca6735bdd4863173eeea22ace6051561696d9ad3636931d80073de424069
4791+
"@sentry-internal/browser-utils": "npm:8.16.0"
4792+
"@sentry/core": "npm:8.16.0"
4793+
"@sentry/types": "npm:8.16.0"
4794+
"@sentry/utils": "npm:8.16.0"
4795+
checksum: 10c0/3020c706ce334433982cf2df59462f8c125f0f0abbd15bbfbc66b3244a2d3b3eb4dfafa510b7f36aed7c7b701bd936efcf60330c8932932c2722a536f626c602
47964796
languageName: node
47974797
linkType: hard
47984798

@@ -4838,18 +4838,18 @@ __metadata:
48384838
languageName: node
48394839
linkType: hard
48404840

4841-
"@sentry/browser@npm:8.14.0":
4842-
version: 8.14.0
4843-
resolution: "@sentry/browser@npm:8.14.0"
4841+
"@sentry/browser@npm:8.16.0":
4842+
version: 8.16.0
4843+
resolution: "@sentry/browser@npm:8.16.0"
48444844
dependencies:
4845-
"@sentry-internal/browser-utils": "npm:8.14.0"
4846-
"@sentry-internal/feedback": "npm:8.14.0"
4847-
"@sentry-internal/replay": "npm:8.14.0"
4848-
"@sentry-internal/replay-canvas": "npm:8.14.0"
4849-
"@sentry/core": "npm:8.14.0"
4850-
"@sentry/types": "npm:8.14.0"
4851-
"@sentry/utils": "npm:8.14.0"
4852-
checksum: 10c0/5803bd6a16e9f7734c686f39e8bad99b6ba4ddaf060a62da4b040a9116bb47361fa40347615892995743492cd1929aff523b0fba54dac4aa1de15d4402f4d389
4845+
"@sentry-internal/browser-utils": "npm:8.16.0"
4846+
"@sentry-internal/feedback": "npm:8.16.0"
4847+
"@sentry-internal/replay": "npm:8.16.0"
4848+
"@sentry-internal/replay-canvas": "npm:8.16.0"
4849+
"@sentry/core": "npm:8.16.0"
4850+
"@sentry/types": "npm:8.16.0"
4851+
"@sentry/utils": "npm:8.16.0"
4852+
checksum: 10c0/64072453352d8e96a8f7f62c2bd53ec98457724941abb018d3c3b5d745835f1854c2dd792e1f7b3ed89a1558cdde0b7676dabf86958e062c1997d3ed79981d4a
48534853
languageName: node
48544854
linkType: hard
48554855

@@ -4986,13 +4986,13 @@ __metadata:
49864986
languageName: node
49874987
linkType: hard
49884988

4989-
"@sentry/core@npm:8.14.0":
4990-
version: 8.14.0
4991-
resolution: "@sentry/core@npm:8.14.0"
4989+
"@sentry/core@npm:8.16.0":
4990+
version: 8.16.0
4991+
resolution: "@sentry/core@npm:8.16.0"
49924992
dependencies:
4993-
"@sentry/types": "npm:8.14.0"
4994-
"@sentry/utils": "npm:8.14.0"
4995-
checksum: 10c0/0cf2c08bfb1e49aaab1e2bad9b8b8717c21f5f73d3f1e92229731fbae6c33319ce016ac724c51e47bea54e7720bd733c7ae57a62be491b0b2b385466ec13316d
4993+
"@sentry/types": "npm:8.16.0"
4994+
"@sentry/utils": "npm:8.16.0"
4995+
checksum: 10c0/6e4b23757c4c3f755a0958835b2655c3ce77f314e354ef532217638708b653f511c5b7650d18b0d8b81025d6322eefc28d549321f7e09a3440483935833288fa
49964996
languageName: node
49974997
linkType: hard
49984998

@@ -5035,9 +5035,9 @@ __metadata:
50355035
languageName: node
50365036
linkType: hard
50375037

5038-
"@sentry/node@npm:8.14.0":
5039-
version: 8.14.0
5040-
resolution: "@sentry/node@npm:8.14.0"
5038+
"@sentry/node@npm:8.16.0":
5039+
version: 8.16.0
5040+
resolution: "@sentry/node@npm:8.16.0"
50415041
dependencies:
50425042
"@opentelemetry/api": "npm:^1.9.0"
50435043
"@opentelemetry/context-async-hooks": "npm:^1.25.1"
@@ -5062,15 +5062,15 @@ __metadata:
50625062
"@opentelemetry/sdk-trace-base": "npm:^1.25.1"
50635063
"@opentelemetry/semantic-conventions": "npm:^1.25.1"
50645064
"@prisma/instrumentation": "npm:5.16.1"
5065-
"@sentry/core": "npm:8.14.0"
5066-
"@sentry/opentelemetry": "npm:8.14.0"
5067-
"@sentry/types": "npm:8.14.0"
5068-
"@sentry/utils": "npm:8.14.0"
5065+
"@sentry/core": "npm:8.16.0"
5066+
"@sentry/opentelemetry": "npm:8.16.0"
5067+
"@sentry/types": "npm:8.16.0"
5068+
"@sentry/utils": "npm:8.16.0"
50695069
opentelemetry-instrumentation-fetch-node: "npm:1.2.0"
50705070
dependenciesMeta:
50715071
opentelemetry-instrumentation-fetch-node:
50725072
optional: true
5073-
checksum: 10c0/9866b4a5a4dae80437f06f0672891f8d4b91138ad5965f5ff1c7f16c1358683982f8e3b3c09648bd3d070822d0cc9fa68915967c0667644ced9f5a6dba598d64
5073+
checksum: 10c0/9a31622f4e3696ad173c1a02f8d5ba17d9a4ce3474513c045e7ed77b7664b8c48ebd1122847d297ef08e486b4f7d874f273c0854e5cccd3aea62e2f8ff77c3a5
50745074
languageName: node
50755075
linkType: hard
50765076

@@ -5114,38 +5114,38 @@ __metadata:
51145114
linkType: hard
51155115

51165116
"@sentry/nuxt@file:.yalc/@sentry/nuxt::locator=nuxt-app%40workspace%3Aapps%2Fnuxt":
5117-
version: 8.14.0+1d572122
5118-
resolution: "@sentry/nuxt@file:.yalc/@sentry/nuxt#.yalc/@sentry/nuxt::hash=e4adc2&locator=nuxt-app%40workspace%3Aapps%2Fnuxt"
5119-
dependencies:
5120-
"@nuxt/kit": "npm:^3.12.3"
5121-
"@sentry/browser": "npm:8.14.0"
5122-
"@sentry/core": "npm:8.14.0"
5123-
"@sentry/node": "npm:8.14.0"
5124-
"@sentry/opentelemetry": "npm:8.14.0"
5125-
"@sentry/types": "npm:8.14.0"
5126-
"@sentry/utils": "npm:8.14.0"
5117+
version: 8.16.0+7d45be1d
5118+
resolution: "@sentry/nuxt@file:.yalc/@sentry/nuxt#.yalc/@sentry/nuxt::hash=688991&locator=nuxt-app%40workspace%3Aapps%2Fnuxt"
5119+
dependencies:
5120+
"@nuxt/kit": "npm:^3.12.2"
5121+
"@sentry/browser": "npm:8.16.0"
5122+
"@sentry/core": "npm:8.16.0"
5123+
"@sentry/node": "npm:8.16.0"
5124+
"@sentry/opentelemetry": "npm:8.16.0"
5125+
"@sentry/types": "npm:8.16.0"
5126+
"@sentry/utils": "npm:8.16.0"
51275127
"@sentry/vite-plugin": "npm:2.20.1"
5128-
"@sentry/vue": "npm:8.14.0"
5128+
"@sentry/vue": "npm:8.16.0"
51295129
peerDependencies:
51305130
nuxt: 3.x
5131-
checksum: 10c0/854d9a383413167ba8dc6f4d07144786f4b4a63f4bae44bc1db7902a340e8c9b0a3950240df34648e3c0226909a6cdd0fbf4c6f31780f2954ccbb6a532b6c3d2
5131+
checksum: 10c0/ade3fad2e308ef4d4076fb25c7c7401a7f863e9310db282797661c14da5643a24faa1ca42f1fe42ca2c02993b40689e881a959090a43d6b6e1783aa00aaa9f38
51325132
languageName: node
51335133
linkType: hard
51345134

5135-
"@sentry/opentelemetry@npm:8.14.0":
5136-
version: 8.14.0
5137-
resolution: "@sentry/opentelemetry@npm:8.14.0"
5135+
"@sentry/opentelemetry@npm:8.16.0":
5136+
version: 8.16.0
5137+
resolution: "@sentry/opentelemetry@npm:8.16.0"
51385138
dependencies:
5139-
"@sentry/core": "npm:8.14.0"
5140-
"@sentry/types": "npm:8.14.0"
5141-
"@sentry/utils": "npm:8.14.0"
5139+
"@sentry/core": "npm:8.16.0"
5140+
"@sentry/types": "npm:8.16.0"
5141+
"@sentry/utils": "npm:8.16.0"
51425142
peerDependencies:
51435143
"@opentelemetry/api": ^1.9.0
51445144
"@opentelemetry/core": ^1.25.1
51455145
"@opentelemetry/instrumentation": ^0.52.1
51465146
"@opentelemetry/sdk-trace-base": ^1.25.1
51475147
"@opentelemetry/semantic-conventions": ^1.25.1
5148-
checksum: 10c0/c65389bfb8c466e544c32a46e5abff5026838f94843a13e9be6fb3a18068f0568d4506125d5e3cb58af51d3e0f7297e3ff57fb5c1992394123685c109ba0c2ae
5148+
checksum: 10c0/71a6ad53f00a85ee13c729fac6b785d50d2a01eb5e8cb278eb3cd72f900c3c72177ebb9a7cbda375e0536f47bfb380b34cc990f01f4405caa233df4908947cc4
51495149
languageName: node
51505150
linkType: hard
51515151

@@ -5264,10 +5264,10 @@ __metadata:
52645264
languageName: node
52655265
linkType: hard
52665266

5267-
"@sentry/types@npm:8.14.0":
5268-
version: 8.14.0
5269-
resolution: "@sentry/types@npm:8.14.0"
5270-
checksum: 10c0/6a1e11477f40190292c3803048da91114f510dae7f0a06be9346c62be186449a12d45287db3f00899c46001a3456b7d33b1cff0c9df345a5036a59033e8317f5
5267+
"@sentry/types@npm:8.16.0":
5268+
version: 8.16.0
5269+
resolution: "@sentry/types@npm:8.16.0"
5270+
checksum: 10c0/383584fd5eb809dac92ef3828bd5a1216b599c2c2509b6447ca8f1f93468709bbc7fed56923c5a5e8fe787d6ee69f6605c5e215bfd6b51259055c897dba4dcad
52715271
languageName: node
52725272
linkType: hard
52735273

@@ -5287,12 +5287,12 @@ __metadata:
52875287
languageName: node
52885288
linkType: hard
52895289

5290-
"@sentry/utils@npm:8.14.0":
5291-
version: 8.14.0
5292-
resolution: "@sentry/utils@npm:8.14.0"
5290+
"@sentry/utils@npm:8.16.0":
5291+
version: 8.16.0
5292+
resolution: "@sentry/utils@npm:8.16.0"
52935293
dependencies:
5294-
"@sentry/types": "npm:8.14.0"
5295-
checksum: 10c0/b4862fe1c6c2e15e662fe81abb9c34e34e1dfce74dee2e63a536af1c6e337969e98814acf60ccdb4d9e891960fd2cc60b3e282c12c642ece4e24a61835681d50
5294+
"@sentry/types": "npm:8.16.0"
5295+
checksum: 10c0/854298fed063518b1640adfea62d6ca85a01f70499e8e2475f9a12ec491799ee407955967b1c123c1923c1ba768832be544e68a94e2a1d2a8edee75cb791ba98
52965296
languageName: node
52975297
linkType: hard
52985298

@@ -5336,17 +5336,17 @@ __metadata:
53365336
languageName: node
53375337
linkType: hard
53385338

5339-
"@sentry/vue@npm:8.14.0":
5340-
version: 8.14.0
5341-
resolution: "@sentry/vue@npm:8.14.0"
5339+
"@sentry/vue@npm:8.16.0":
5340+
version: 8.16.0
5341+
resolution: "@sentry/vue@npm:8.16.0"
53425342
dependencies:
5343-
"@sentry/browser": "npm:8.14.0"
5344-
"@sentry/core": "npm:8.14.0"
5345-
"@sentry/types": "npm:8.14.0"
5346-
"@sentry/utils": "npm:8.14.0"
5343+
"@sentry/browser": "npm:8.16.0"
5344+
"@sentry/core": "npm:8.16.0"
5345+
"@sentry/types": "npm:8.16.0"
5346+
"@sentry/utils": "npm:8.16.0"
53475347
peerDependencies:
53485348
vue: 2.x || 3.x
5349-
checksum: 10c0/07e8a829fb9d2122758be0a74083f977fd08fdcb89070adbde192adbfa12c6aa32dec32d579752d427a887f469e3ce2b20462becaaecf5ad6e5b67e3e92943c9
5349+
checksum: 10c0/ee593c9209a9f083ed12c2c20d14318c0c1529a6ca0f39c1f89b15a510436e6c2ebc5b252d5982c54f12af3761f5e64ef1c5974981cce012ae1df4e87256acd9
53505350
languageName: node
53515351
linkType: hard
53525352

0 commit comments

Comments
 (0)