Skip to content

Commit afba737

Browse files
authored
feat(node): Bump to latest @fastify/otel (#19452)
This PR unvendors `@fastify/otel` and bumps to the latest version. We can do this now because the newest `minimatch` expanded node support to node 18. Closes: #19450
1 parent 10e7421 commit afba737

File tree

10 files changed

+51
-542
lines changed

10 files changed

+51
-542
lines changed

.size-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ module.exports = [
326326
import: createImport('init'),
327327
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
328328
gzip: true,
329-
limit: '167 KB',
329+
limit: '171 KB',
330330
},
331331
{
332332
name: '@sentry/node - without tracing',

dev-packages/e2e-tests/test-applications/nestjs-fastify/tests/transactions.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
6262
data: {
6363
'sentry.origin': 'auto.http.otel.fastify',
6464
'sentry.op': 'hook.fastify',
65-
'service.name': 'fastify',
6665
'hook.name': 'fastify -> @fastify/otel -> @fastify/middie - onRequest',
6766
'fastify.type': 'hook',
6867
'hook.callback.name': 'runMiddie',
@@ -81,7 +80,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
8180
data: {
8281
'sentry.origin': 'auto.http.otel.fastify',
8382
'sentry.op': 'request_handler.fastify',
84-
'service.name': 'fastify',
8583
'hook.name': 'fastify -> @fastify/otel -> @fastify/middie - route-handler',
8684
'fastify.type': 'request-handler',
8785
'http.route': '/test-transaction',

dev-packages/e2e-tests/test-applications/node-fastify-4/tests/transactions.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
7272
'hook.name': 'fastify -> @fastify/otel - onRequest',
7373
'sentry.op': 'hook.fastify',
7474
'sentry.origin': 'auto.http.otel.fastify',
75-
'service.name': 'fastify',
7675
},
7776
description: '@fastify/otel - onRequest',
7877
op: 'hook.fastify',

dev-packages/e2e-tests/test-applications/node-fastify-5/tests/transactions.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
7272
'hook.name': 'fastify -> @fastify/otel - onRequest',
7373
'sentry.op': 'hook.fastify',
7474
'sentry.origin': 'auto.http.otel.fastify',
75-
'service.name': 'fastify',
7675
},
7776
description: '@fastify/otel - onRequest',
7877
op: 'hook.fastify',

packages/node/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@
9595
"@opentelemetry/sdk-trace-base": "^2.5.0",
9696
"@opentelemetry/semantic-conventions": "^1.39.0",
9797
"@prisma/instrumentation": "7.2.0",
98+
"@fastify/otel": "0.16.0",
9899
"@sentry/core": "10.39.0",
99100
"@sentry/node-core": "10.39.0",
100101
"@sentry/opentelemetry": "10.39.0",
101-
"import-in-the-middle": "^2.0.6",
102-
"minimatch": "^9.0.0"
102+
"import-in-the-middle": "^2.0.6"
103103
},
104104
"devDependencies": {
105105
"@types/node": "^18.19.1"

packages/node/src/integrations/tracing/fastify/fastify-otel/.eslintrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/node/src/integrations/tracing/fastify/fastify-otel/index.d.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)