Skip to content

Commit a7bb898

Browse files
committed
upgrade Sentry to v8
1 parent 9570e7f commit a7bb898

File tree

6 files changed

+332
-156
lines changed

6 files changed

+332
-156
lines changed

apps/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@astrojs/check": "^0.5.10",
1414
"@astrojs/node": "^8.2.5",
15-
"@sentry/astro": "7.113.0",
15+
"@sentry/astro": "8.0.0-beta.6",
1616
"astro": "^4.7.0",
1717
"typescript": "^5.4.5"
1818
}

payload-files/astro/_test-param-error_1337--transaction.json

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"event_id": "[[ID1]]",
55
"sdk": {
66
"name": "sentry.javascript.astro",
7-
"version": "7.113.0"
7+
"version": "8.0.0-beta.6"
88
},
99
"sent_at": "[[ISODateString]]",
1010
"trace": {
1111
"environment": "qa",
1212
"public_key": "[[publicKey]]",
13-
"release": "d9b30b85f9c70e8a590b9932552161cf132eaffa",
13+
"release": "9570e7fc5b7da6cd2a5395fe69d3bb14fe2551a9",
1414
"sample_rate": "1",
1515
"sampled": "true",
1616
"trace_id": "[[ID2]]"
@@ -23,6 +23,7 @@
2323
"contexts": {
2424
"trace": {
2525
"data": {
26+
"hardwareConcurrency": "10",
2627
"sentry.op": "pageload",
2728
"sentry.origin": "auto.pageload.browser",
2829
"sentry.sample_rate": 1,
@@ -31,11 +32,6 @@
3132
"op": "pageload",
3233
"origin": "auto.pageload.browser",
3334
"span_id": "[[ID3]]",
34-
"tags": {
35-
"hardwareConcurrency": "10",
36-
"lcp.element": "body > h1",
37-
"lcp.size": "[[highNumber]]"
38-
},
3935
"trace_id": "[[ID2]]"
4036
}
4137
},
@@ -44,23 +40,19 @@
4440
"measurements": {
4541
"fcp": {
4642
"unit": "millisecond",
47-
"value": 164
48-
},
49-
"lcp": {
50-
"unit": "millisecond",
51-
"value": 164
43+
"value": 144
5244
},
5345
"ttfb": {
5446
"unit": "millisecond",
55-
"value": 87
47+
"value": 65
5648
},
5749
"ttfb.requestTime": {
5850
"unit": "millisecond",
59-
"value": 22
51+
"value": 27
6052
}
6153
},
6254
"platform": "javascript",
63-
"release": "d9b30b85f9c70e8a590b9932552161cf132eaffa",
55+
"release": "9570e7fc5b7da6cd2a5395fe69d3bb14fe2551a9",
6456
"request": {
6557
"headers": {
6658
"Referer": "http://localhost:4321/",
@@ -72,7 +64,7 @@
7264
"integrations": [
7365
"InboundFilters",
7466
"FunctionToString",
75-
"TryCatch",
67+
"BrowserApiErrors",
7668
"Breadcrumbs",
7769
"GlobalHandlers",
7870
"LinkedErrors",
@@ -84,21 +76,18 @@
8476
"packages": [
8577
{
8678
"name": "npm:@sentry/astro",
87-
"version": "7.113.0"
79+
"version": "8.0.0-beta.6"
8880
},
8981
{
9082
"name": "npm:@sentry/browser",
91-
"version": "7.113.0"
83+
"version": "8.0.0-beta.6"
9284
}
9385
],
94-
"version": "7.113.0"
86+
"version": "8.0.0-beta.6"
9587
},
9688
"spans": [],
9789
"start_timestamp": "[[timestamp]]",
9890
"tags": {
99-
"hardwareConcurrency": "10",
100-
"lcp.element": "body > h1",
101-
"lcp.size": "[[highNumber]]",
10291
"runtime": "browser"
10392
},
10493
"timestamp": "[[timestamp]]",

payload-files/astro/_test-param-error_[param]--transaction.json

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"event_id": "[[ID1]]",
55
"sdk": {
66
"name": "sentry.javascript.astro",
7-
"version": "7.113.0"
7+
"version": "8.0.0-beta.6"
88
},
99
"sent_at": "[[ISODateString]]",
1010
"trace": {
1111
"environment": "qa",
1212
"public_key": "[[publicKey]]",
13-
"release": "d9b30b85f9c70e8a590b9932552161cf132eaffa",
13+
"release": "9570e7fc5b7da6cd2a5395fe69d3bb14fe2551a9",
1414
"sample_rate": "1",
1515
"sampled": "true",
1616
"trace_id": "[[ID2]]",
@@ -25,8 +25,7 @@
2525
{
2626
"category": "http",
2727
"data": {
28-
"method": "GET",
29-
"status_code": 500,
28+
"http.method": "GET",
3029
"url": "http://localhost:4321/api/test-param-error/1337"
3130
},
3231
"timestamp": "[[timestamp]]",
@@ -58,6 +57,16 @@
5857
"name": "macOS",
5958
"version": "14.2"
6059
},
60+
"otel": {
61+
"resource": {
62+
"service.name": "node",
63+
"service.namespace": "sentry",
64+
"service.version": "8.0.0-beta.6",
65+
"telemetry.sdk.language": "nodejs",
66+
"telemetry.sdk.name": "opentelemetry",
67+
"telemetry.sdk.version": "1.23.0"
68+
}
69+
},
6170
"runtime": {
6271
"name": "node",
6372
"version": "v20.11.1"
@@ -66,6 +75,7 @@
6675
"data": {
6776
"http.response.status_code": 200,
6877
"method": "GET",
78+
"otel.kind": "INTERNAL",
6979
"sentry.op": "http.server",
7080
"sentry.origin": "auto.http.astro",
7181
"sentry.sample_rate": 1,
@@ -76,17 +86,19 @@
7686
"origin": "auto.http.astro",
7787
"span_id": "[[ID3]]",
7888
"status": "ok",
79-
"tags": {
80-
"http.status_code": "200"
81-
},
8289
"trace_id": "[[ID2]]"
8390
}
8491
},
8592
"environment": "qa",
8693
"event_id": "[[ID1]]",
87-
"modules": {},
8894
"platform": "node",
89-
"release": "d9b30b85f9c70e8a590b9932552161cf132eaffa",
95+
"release": "9570e7fc5b7da6cd2a5395fe69d3bb14fe2551a9",
96+
"request": {
97+
"cookies": {},
98+
"headers": {},
99+
"method": "GET",
100+
"url": "http://localhost:4321/test-param-error/1337"
101+
},
90102
"sdk": {
91103
"integrations": [
92104
"InboundFilters",
@@ -95,60 +107,73 @@
95107
"RequestData",
96108
"Console",
97109
"Http",
98-
"Undici",
110+
"NodeFetch",
99111
"OnUncaughtException",
100112
"OnUnhandledRejection",
101113
"ContextLines",
102-
"LocalVariables",
114+
"LocalVariablesAsync",
103115
"Context",
104-
"Modules"
116+
"Express",
117+
"Fastify",
118+
"Graphql",
119+
"Mongo",
120+
"Mongoose",
121+
"Mysql",
122+
"Mysql2",
123+
"Redis",
124+
"Postgres",
125+
"Nest",
126+
"Hapi",
127+
"Koa",
128+
"Connect"
105129
],
106130
"name": "sentry.javascript.astro",
107131
"packages": [
108132
{
109133
"name": "npm:@sentry/astro",
110-
"version": "7.113.0"
134+
"version": "8.0.0-beta.6"
111135
},
112136
{
113137
"name": "npm:@sentry/node",
114-
"version": "7.113.0"
138+
"version": "8.0.0-beta.6"
115139
}
116140
],
117-
"version": "7.113.0"
141+
"version": "8.0.0-beta.6"
118142
},
119143
"server_name": "D9M3PY4LQ7.local",
120144
"spans": [
121145
{
122146
"data": {
147+
"http.client": "fetch",
123148
"http.method": "GET",
124149
"http.response.status_code": 500,
150+
"http.status_code": 500,
151+
"http.target": "/api/test-param-error/1337",
152+
"http.url": "http://localhost:4321/api/test-param-error/1337",
153+
"otel.kind": "CLIENT",
125154
"sentry.op": "http.client",
126-
"sentry.origin": "auto.http.node.undici"
155+
"sentry.origin": "auto.http.otel.node_fetch",
156+
"url": "http://localhost:4321/api/test-param-error/1337"
127157
},
128158
"description": "GET http://localhost:4321/api/test-param-error/1337",
129159
"op": "http.client",
130-
"origin": "auto.http.node.undici",
160+
"origin": "auto.http.otel.node_fetch",
131161
"parent_span_id": "[[ID3]]",
132162
"span_id": "[[ID4]]",
133163
"start_timestamp": "[[timestamp]]",
134-
"status": "internal_error",
135-
"tags": {
136-
"http.status_code": "500"
137-
},
164+
"status": "unknown_error",
138165
"timestamp": "[[timestamp]]",
139166
"trace_id": "[[ID2]]"
140167
}
141168
],
142169
"start_timestamp": "[[timestamp]]",
143170
"tags": {
144-
"http.status_code": "200",
145-
"runtime": "node",
146-
"transaction": "GET /test-param-error/[param]"
171+
"runtime": "node"
147172
},
148173
"timestamp": "[[timestamp]]",
149174
"transaction": "GET /test-param-error/[param]",
150175
"transaction_info": {
151-
"source": "custom"
176+
"source": "route"
152177
},
153178
"type": "transaction"
154179
}

payload-files/astro/_test-param-success_1337--transaction.json

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"event_id": "[[ID1]]",
55
"sdk": {
66
"name": "sentry.javascript.astro",
7-
"version": "7.113.0"
7+
"version": "8.0.0-beta.6"
88
},
99
"sent_at": "[[ISODateString]]",
1010
"trace": {
1111
"environment": "qa",
1212
"public_key": "[[publicKey]]",
13-
"release": "d9b30b85f9c70e8a590b9932552161cf132eaffa",
13+
"release": "9570e7fc5b7da6cd2a5395fe69d3bb14fe2551a9",
1414
"sample_rate": "1",
1515
"sampled": "true",
1616
"trace_id": "[[ID2]]"
@@ -23,6 +23,7 @@
2323
"contexts": {
2424
"trace": {
2525
"data": {
26+
"hardwareConcurrency": "10",
2627
"sentry.op": "pageload",
2728
"sentry.origin": "auto.pageload.browser",
2829
"sentry.sample_rate": 1,
@@ -31,11 +32,6 @@
3132
"op": "pageload",
3233
"origin": "auto.pageload.browser",
3334
"span_id": "[[ID3]]",
34-
"tags": {
35-
"hardwareConcurrency": "10",
36-
"lcp.element": "body > h1",
37-
"lcp.size": "[[highNumber]]"
38-
},
3935
"trace_id": "[[ID2]]"
4036
}
4137
},
@@ -44,23 +40,19 @@
4440
"measurements": {
4541
"fcp": {
4642
"unit": "millisecond",
47-
"value": 184
48-
},
49-
"lcp": {
50-
"unit": "millisecond",
51-
"value": 186
43+
"value": 135
5244
},
5345
"ttfb": {
5446
"unit": "millisecond",
55-
"value": 103
47+
"value": 60
5648
},
5749
"ttfb.requestTime": {
5850
"unit": "millisecond",
59-
"value": 42
51+
"value": 15
6052
}
6153
},
6254
"platform": "javascript",
63-
"release": "d9b30b85f9c70e8a590b9932552161cf132eaffa",
55+
"release": "9570e7fc5b7da6cd2a5395fe69d3bb14fe2551a9",
6456
"request": {
6557
"headers": {
6658
"Referer": "http://localhost:4321/",
@@ -72,7 +64,7 @@
7264
"integrations": [
7365
"InboundFilters",
7466
"FunctionToString",
75-
"TryCatch",
67+
"BrowserApiErrors",
7668
"Breadcrumbs",
7769
"GlobalHandlers",
7870
"LinkedErrors",
@@ -84,21 +76,18 @@
8476
"packages": [
8577
{
8678
"name": "npm:@sentry/astro",
87-
"version": "7.113.0"
79+
"version": "8.0.0-beta.6"
8880
},
8981
{
9082
"name": "npm:@sentry/browser",
91-
"version": "7.113.0"
83+
"version": "8.0.0-beta.6"
9284
}
9385
],
94-
"version": "7.113.0"
86+
"version": "8.0.0-beta.6"
9587
},
9688
"spans": [],
9789
"start_timestamp": "[[timestamp]]",
9890
"tags": {
99-
"hardwareConcurrency": "10",
100-
"lcp.element": "body > h1",
101-
"lcp.size": "[[highNumber]]",
10291
"runtime": "browser"
10392
},
10493
"timestamp": "[[timestamp]]",

0 commit comments

Comments
 (0)