Skip to content

Commit cb4a89c

Browse files
committed
Merge branch 'develop' into sig/otel-top-level-span-links
# Conflicts: # dev-packages/node-integration-tests/suites/tracing/linking/test.ts # packages/opentelemetry/test/spanExporter.test.ts # packages/opentelemetry/test/trace.test.ts
2 parents 4372b90 + 5e6b852 commit cb4a89c

File tree

75 files changed

+232
-179
lines changed

Some content is hidden

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

75 files changed

+232
-179
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@
1010

1111
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
1212

13-
Work in this release was contributed by @filips-alpe. Thank you for your contribution!
13+
## 9.1.0
14+
15+
- feat(browser): Add `graphqlClientIntegration` ([#13783](https://github.com/getsentry/sentry-javascript/pull/13783))
16+
- feat(core): Allow for nested trpc context ([#15379](https://github.com/getsentry/sentry-javascript/pull/15379))
17+
- feat(core): Create types and utilities for span links ([#15375](https://github.com/getsentry/sentry-javascript/pull/15375))
18+
- feat(deps): bump @opentelemetry/instrumentation-pg from 0.50.0 to 0.51.0 ([#15273](https://github.com/getsentry/sentry-javascript/pull/15273))
19+
- feat(node): Extract Sentry-specific node-fetch instrumentation ([#15231](https://github.com/getsentry/sentry-javascript/pull/15231))
20+
- feat(vue): Support Pinia v3 ([#15383](https://github.com/getsentry/sentry-javascript/pull/15383))
21+
- fix(sveltekit): Avoid request body double read errors ([#15368](https://github.com/getsentry/sentry-javascript/pull/15368))
22+
- fix(sveltekit): Avoid top-level `vite` import ([#15371](https://github.com/getsentry/sentry-javascript/pull/15371))
23+
24+
Work in this release was contributed by @Zen-cronic and @filips-alpe. Thank you for your contribution!
1425

1526
## 9.0.1
1627

dev-packages/browser-integration-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "9.0.1",
3+
"version": "9.1.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -42,7 +42,7 @@
4242
"@babel/preset-typescript": "^7.16.7",
4343
"@playwright/test": "~1.50.0",
4444
"@sentry-internal/rrweb": "2.31.0",
45-
"@sentry/browser": "9.0.1",
45+
"@sentry/browser": "9.1.0",
4646
"axios": "1.7.7",
4747
"babel-loader": "^8.2.2",
4848
"fflate": "0.8.2",

dev-packages/bundle-analyzer-scenarios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "9.0.1",
3+
"version": "9.1.0",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/clear-cache-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/clear-cache-gh-action",
33
"description": "An internal Github Action to clear GitHub caches.",
4-
"version": "9.0.1",
4+
"version": "9.1.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "9.0.1",
3+
"version": "9.1.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/external-contributor-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/external-contributor-gh-action",
33
"description": "An internal Github Action to add external contributors to the CHANGELOG.md file.",
4-
"version": "9.0.1",
4+
"version": "9.1.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/node-integration-tests/package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-integration-tests",
3-
"version": "9.0.1",
3+
"version": "9.1.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -16,12 +16,9 @@
1616
"build:types": "tsc -p tsconfig.types.json",
1717
"clean": "rimraf -g **/node_modules && run-p clean:script",
1818
"clean:script": "node scripts/clean.js",
19-
"prisma-v5:init": "cd suites/tracing/prisma-orm-v5 && yarn && yarn setup",
20-
"prisma-v6:init": "cd suites/tracing/prisma-orm-v6 && yarn && yarn setup",
2119
"lint": "eslint . --format stylish",
2220
"fix": "eslint . --format stylish --fix",
2321
"type-check": "tsc",
24-
"pretest": "run-s --silent prisma-v5:init prisma-v6:init",
2522
"test": "jest --config ./jest.config.js",
2623
"test:watch": "yarn test --watch"
2724
},
@@ -31,9 +28,9 @@
3128
"@nestjs/common": "10.4.6",
3229
"@nestjs/core": "10.4.6",
3330
"@nestjs/platform-express": "10.4.6",
34-
"@sentry/aws-serverless": "9.0.1",
35-
"@sentry/core": "9.0.1",
36-
"@sentry/node": "9.0.1",
31+
"@sentry/aws-serverless": "9.1.0",
32+
"@sentry/core": "9.1.0",
33+
"@sentry/node": "9.1.0",
3734
"@types/mongodb": "^3.6.20",
3835
"@types/mysql": "^2.15.21",
3936
"@types/pg": "^8.6.5",

dev-packages/node-integration-tests/suites/tracing/linking/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ describe('span links', () => {
173173
span_id: expect.stringMatching(parent1_spanId),
174174
}),
175175
expect.objectContaining({
176-
trace_id: expect.stringMatching(child1_1?.trace_id as string),
177-
span_id: expect.stringMatching(child1_1?.span_id as string),
176+
trace_id: expect.stringMatching(child1_1?.trace_id || 'non-existent-id-fallback'),
177+
span_id: expect.stringMatching(child1_1?.span_id || 'non-existent-id-fallback'),
178178
attributes: expect.objectContaining({
179179
'sentry.link.type': 'previous_trace',
180180
}),

dev-packages/node-integration-tests/suites/tracing/prisma-orm-v5/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
"node": ">=18"
88
},
99
"scripts": {
10-
"db-up": "docker compose up -d",
1110
"generate": "prisma generate",
1211
"migrate": "prisma migrate dev -n sentry-test",
13-
"setup": "run-s --silent db-up generate migrate"
12+
"setup": "run-s --silent generate migrate"
1413
},
1514
"keywords": [],
1615
"author": "",

dev-packages/node-integration-tests/suites/tracing/prisma-orm-v5/test.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
import { createRunner } from '../../../utils/runner';
1+
import { cleanupChildProcesses, createRunner } from '../../../utils/runner';
22

3-
describe('Prisma ORM Tests', () => {
3+
// When running docker compose, we need a larger timeout, as this takes some time...
4+
jest.setTimeout(75000);
5+
6+
afterAll(() => {
7+
cleanupChildProcesses();
8+
});
9+
10+
describe('Prisma ORM v5 Tests', () => {
411
test('CJS - should instrument PostgreSQL queries from Prisma ORM', done => {
512
createRunner(__dirname, 'scenario.js')
13+
.withDockerCompose({
14+
workingDirectory: [__dirname],
15+
readyMatches: ['port 5432'],
16+
setupCommand: 'yarn && yarn setup',
17+
})
618
.expect({
719
transaction: transaction => {
820
expect(transaction.transaction).toBe('Test Transaction');

0 commit comments

Comments
 (0)