Skip to content

Commit 370954f

Browse files
Update sentry dependencies to v7.60.0 (#191)
* Update sentry dependencies to v7.60.0 * Update tests --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Cepa <[email protected]>
1 parent 33d814f commit 370954f

File tree

4 files changed

+85
-20
lines changed

4 files changed

+85
-20
lines changed

packages/toucan-js/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"serverless"
3030
],
3131
"dependencies": {
32-
"@sentry/core": "7.43.0",
33-
"@sentry/utils": "7.43.0",
34-
"@sentry/types": "7.43.0"
32+
"@sentry/core": "7.60.0",
33+
"@sentry/utils": "7.60.0",
34+
"@sentry/types": "7.60.0"
3535
},
3636
"devDependencies": {
3737
"@rollup/plugin-commonjs": "25.0.3",

packages/toucan-js/test/__snapshots__/index.spec.ts.snap

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
exports[`Toucan captureException Error with cause 1`] = `
44
{
5+
"contexts": ObjectContaining {
6+
"trace": ObjectContaining {
7+
"span_id": Any<String>,
8+
"trace_id": Any<String>,
9+
},
10+
},
511
"environment": "production",
612
"event_id": Any<String>,
713
"exception": ObjectContaining {
@@ -67,6 +73,12 @@ exports[`Toucan captureException Error with cause 1`] = `
6773

6874
exports[`Toucan captureException captureException: primitive 1`] = `
6975
{
76+
"contexts": ObjectContaining {
77+
"trace": ObjectContaining {
78+
"span_id": Any<String>,
79+
"trace_id": Any<String>,
80+
},
81+
},
7082
"environment": "production",
7183
"event_id": Any<String>,
7284
"exception": ObjectContaining {
@@ -116,6 +128,12 @@ exports[`Toucan captureException captureException: primitive 1`] = `
116128

117129
exports[`Toucan captureException captureException: primitive 2`] = `
118130
{
131+
"contexts": ObjectContaining {
132+
"trace": ObjectContaining {
133+
"span_id": Any<String>,
134+
"trace_id": Any<String>,
135+
},
136+
},
119137
"environment": "production",
120138
"event_id": Any<String>,
121139
"exception": ObjectContaining {
@@ -165,6 +183,12 @@ exports[`Toucan captureException captureException: primitive 2`] = `
165183

166184
exports[`Toucan captureException captureException: primitive 3`] = `
167185
{
186+
"contexts": ObjectContaining {
187+
"trace": ObjectContaining {
188+
"span_id": Any<String>,
189+
"trace_id": Any<String>,
190+
},
191+
},
168192
"environment": "production",
169193
"event_id": Any<String>,
170194
"exception": ObjectContaining {
@@ -214,6 +238,12 @@ exports[`Toucan captureException captureException: primitive 3`] = `
214238

215239
exports[`Toucan captureException object 1`] = `
216240
{
241+
"contexts": ObjectContaining {
242+
"trace": ObjectContaining {
243+
"span_id": Any<String>,
244+
"trace_id": Any<String>,
245+
},
246+
},
217247
"environment": "production",
218248
"event_id": Any<String>,
219249
"exception": ObjectContaining {
@@ -269,6 +299,12 @@ exports[`Toucan captureException object 1`] = `
269299

270300
exports[`Toucan captureException runtime thrown Error 1`] = `
271301
{
302+
"contexts": ObjectContaining {
303+
"trace": ObjectContaining {
304+
"span_id": Any<String>,
305+
"trace_id": Any<String>,
306+
},
307+
},
272308
"environment": "production",
273309
"event_id": Any<String>,
274310
"exception": ObjectContaining {
@@ -330,6 +366,12 @@ exports[`Toucan captureMessage sends correct body to Sentry 1`] = `
330366
"type": "event",
331367
},
332368
ObjectContaining {
369+
"contexts": ObjectContaining {
370+
"trace": ObjectContaining {
371+
"span_id": Any<String>,
372+
"trace_id": Any<String>,
373+
},
374+
},
333375
"event_id": Any<String>,
334376
"sdk": ObjectContaining {
335377
"integrations": [
@@ -353,6 +395,12 @@ exports[`Toucan captureMessage sends correct body to Sentry 1`] = `
353395

354396
exports[`Toucan general invalid URL does not fail 1`] = `
355397
{
398+
"contexts": ObjectContaining {
399+
"trace": ObjectContaining {
400+
"span_id": Any<String>,
401+
"trace_id": Any<String>,
402+
},
403+
},
356404
"environment": "production",
357405
"event_id": Any<String>,
358406
"level": "info",
@@ -378,6 +426,12 @@ exports[`Toucan general invalid URL does not fail 1`] = `
378426

379427
exports[`Toucan stacktraces attachStacktrace = true sends stacktrace with captureMessage 1`] = `
380428
{
429+
"contexts": ObjectContaining {
430+
"trace": ObjectContaining {
431+
"span_id": Any<String>,
432+
"trace_id": Any<String>,
433+
},
434+
},
381435
"environment": "production",
382436
"event_id": Any<String>,
383437
"exception": ObjectContaining {

packages/toucan-js/test/index.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ const DEFAULT_INTEGRATIONS = ['RequestData', 'LinkedErrors'];
1818
* We don't care about exact values of pseudorandomized and time-related properties, as long as they match the type we accept them.
1919
*/
2020
const GENERIC_EVENT_BODY_MATCHER = {
21+
contexts: expect.objectContaining({
22+
trace: expect.objectContaining({
23+
span_id: expect.any(String),
24+
trace_id: expect.any(String)
25+
})
26+
}),
2127
event_id: expect.any(String),
2228
timestamp: expect.any(Number),
2329
sdk: expect.objectContaining({

yarn.lock

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,14 +1610,14 @@
16101610
"@sentry/utils" "7.23.0"
16111611
tslib "^1.9.3"
16121612

1613-
"@sentry/core@7.43.0":
1614-
version "7.43.0"
1615-
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.43.0.tgz#c78e79399172738c96e3b388244258153c49215f"
1616-
integrity sha512-zvMZgEi7ptLBwDnd+xR/u4zdSe5UzS4S3ZhoemdQrn1PxsaVySD/ptyzLoGSZEABqlRxGHnQrZ78MU1hUDvKuQ==
1613+
"@sentry/core@7.60.0":
1614+
version "7.60.0"
1615+
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.60.0.tgz#c256d1305b52210d608e71de8d8f365ca9377f15"
1616+
integrity sha512-B02OlFMoqdkfDZlbQfmk7tL2vObShofk7ySd/7mp+oRdUuCvX0tyrGlwI87YJvd8YWSZOCKINs3aVYivw/b6gg==
16171617
dependencies:
1618-
"@sentry/types" "7.43.0"
1619-
"@sentry/utils" "7.43.0"
1620-
tslib "^1.9.3"
1618+
"@sentry/types" "7.60.0"
1619+
"@sentry/utils" "7.60.0"
1620+
tslib "^2.4.1 || ^1.9.3"
16211621

16221622
"@sentry/esbuild-plugin@^0.2.3":
16231623
version "0.2.3"
@@ -1661,10 +1661,10 @@
16611661
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.23.0.tgz#5d2ce94d81d7c1fad702645306f3c0932708cad5"
16621662
integrity sha512-fZ5XfVRswVZhKoCutQ27UpIHP16tvyc6ws+xq+njHv8Jg8gFBCoOxlJxuFhegD2xxylAn1aiSHNAErFWdajbpA==
16631663

1664-
"@sentry/types@7.43.0":
1665-
version "7.43.0"
1666-
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.43.0.tgz#e621257601e9db2a39cdd3bd75e67fe338ed51eb"
1667-
integrity sha512-5XxCWqYWJNoS+P6Ie2ZpUDxLRCt7FTEzmlQkCdjW6MFWOX26hAbF/wEuOTYAFKZXMIXOz0Egofik1e8v1Cg6/A==
1664+
"@sentry/types@7.60.0":
1665+
version "7.60.0"
1666+
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.60.0.tgz#e3e5f16436feff802b1b126a16dba537000cef55"
1667+
integrity sha512-MSEuF9YjE0j+UKdqee2AzcNlMnShVNTkCB2Wnng6Bc5hHhn4fyYeTLbuFpNxL0ffN65lxblaWx6doDsMcvRxcA==
16681668

16691669
16701670
version "7.23.0"
@@ -1674,13 +1674,13 @@
16741674
"@sentry/types" "7.23.0"
16751675
tslib "^1.9.3"
16761676

1677-
"@sentry/utils@7.43.0":
1678-
version "7.43.0"
1679-
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.43.0.tgz#ad16efb86b94ffe6dca2ed2b299d5230ba6d815b"
1680-
integrity sha512-f78YfMLcgNU7+suyWFCuQhQlneXXMS+egb0EFZh7iU7kANUPRX5T4b+0C+fwaPm5gA6XfGYskr4ZnzQJLOlSqg==
1677+
"@sentry/utils@7.60.0":
1678+
version "7.60.0"
1679+
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.60.0.tgz#a96d772dcc2d007f73a5bcf67dcc66f6a7085736"
1680+
integrity sha512-Oc/PQqzeNDOSy4ZzVj6h9U+GEGRkg2PEVn9PC2V9/v3HDD20mndFqR/S2B5OOgDb/6pNGyz8XiZYI5rb29WFHA==
16811681
dependencies:
1682-
"@sentry/types" "7.43.0"
1683-
tslib "^1.9.3"
1682+
"@sentry/types" "7.60.0"
1683+
tslib "^2.4.1 || ^1.9.3"
16841684

16851685
"@sentry/vite-plugin@^0.2.3":
16861686
version "0.2.3"
@@ -6447,6 +6447,11 @@ tslib@^2.4.0:
64476447
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e"
64486448
integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==
64496449

6450+
"tslib@^2.4.1 || ^1.9.3":
6451+
version "2.6.1"
6452+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.1.tgz#fd8c9a0ff42590b25703c0acb3de3d3f4ede0410"
6453+
integrity sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==
6454+
64506455
tty-table@^4.1.5:
64516456
version "4.2.1"
64526457
resolved "https://registry.yarnpkg.com/tty-table/-/tty-table-4.2.1.tgz#c06cd76c54542acf4e2b4a0e9a5802984b65cba6"

0 commit comments

Comments
 (0)