Skip to content

Commit 79b1618

Browse files
authored
Merge pull request #9488 from getsentry/prepare-release/7.79.0
meta: Update CHANGELOG for 7.79.0
2 parents c1514ba + 3b09ca9 commit 79b1618

File tree

20 files changed

+76
-92
lines changed

20 files changed

+76
-92
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

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

7+
## 7.79.0
8+
9+
- feat(tracing): Add span `origin` to trace context (#9472)
10+
- fix(deno): Emit .mjs files (#9485)
11+
- fix(nextjs): Flush servercomponent events for edge (#9487)
12+
713
## 7.78.0
814

915
### Important Changes

packages/core/src/tracing/span.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ export class Span implements SpanInterface {
332332
status: this.status,
333333
tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,
334334
trace_id: this.traceId,
335+
origin: this.origin,
335336
});
336337
}
337338

packages/deno/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
## Links
1414

15+
- [SDK on Deno registry](https://deno.land/x/sentry)
1516
- [Official SDK Docs](https://docs.sentry.io/quickstart/)
1617
- [TypeDoc](http://getsentry.github.io/sentry-javascript/)
1718

@@ -23,6 +24,10 @@ To use this SDK, call `Sentry.init(options)` as early as possible in the main en
2324
hook into the environment. Note that you can turn off almost all side effects using the respective options.
2425

2526
```javascript
27+
// Import from the Deno registry
28+
import * as Sentry from "https://deno.land/x/sentry/index.mjs";
29+
30+
// or import from npm registry
2631
import * as Sentry from 'npm:@sentry/deno';
2732

2833
Sentry.init({
@@ -31,7 +36,7 @@ Sentry.init({
3136
});
3237
```
3338

34-
To set context information or send manual events, use the exported functions of `@sentry/deno`. Note that these
39+
To set context information or send manual events, use the exported functions of the Deno SDK. Note that these
3540
functions will not perform any action before you have called `init()`:
3641

3742
```javascript

packages/deno/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/deno",
77
"author": "Sentry",
88
"license": "MIT",
9-
"main": "build/index.js",
109
"module": "build/index.js",
1110
"types": "build/index.d.ts",
1211
"publishConfig": {
@@ -51,7 +50,7 @@
5150
"pretest": "run-s deno-types test:build",
5251
"test": "run-s install:deno test:types test:unit",
5352
"test:build": "tsc -p tsconfig.test.types.json && rollup -c rollup.test.config.js",
54-
"test:types": "deno check ./build/index.js",
53+
"test:types": "deno check ./build/index.mjs",
5554
"test:unit": "deno test --allow-read --allow-run",
5655
"test:unit:update": "deno test --allow-read --allow-write --allow-run -- --update",
5756
"yalc:publish": "ts-node ../../scripts/prepack.ts && yalc publish build --push"

packages/deno/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineConfig({
77
input: ['src/index.ts'],
88
treeshake: 'smallest',
99
output: {
10-
dir: 'build',
10+
file: 'build/index.mjs',
1111
sourcemap: true,
1212
preserveModules: false,
1313
strict: false,

packages/deno/test/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Sentry from '../build/index.js';
1+
import * as Sentry from '../build/index.mjs';
22

33
Sentry.init({
44
dsn: 'https://[email protected]/4505526893805568',

packages/deno/test/mod.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { assertSnapshot } from 'https://deno.land/[email protected]/testing/snapshot.t
33

44
import type { sentryTypes } from '../build-test/index.js';
55
import { sentryUtils } from '../build-test/index.js';
6-
import { defaultIntegrations, DenoClient, Hub, Scope } from '../build/index.js';
6+
import { defaultIntegrations, DenoClient, Hub, Scope } from '../build/index.mjs';
77
import { getNormalizedEvent } from './normalize.ts';
88
import { makeTestTransport } from './transport.ts';
99

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const dynamic = 'force-dynamic';
2+
3+
export const runtime = 'edge';
4+
5+
export default async function Page() {
6+
throw new Error('Edge Server Component Error');
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { test, expect } from '@playwright/test';
2+
import { waitForError } from '../event-proxy-server';
3+
4+
test('Should record exceptions for faulty edge server components', async ({ page }) => {
5+
const errorEventPromise = waitForError('nextjs-13-app-dir', errorEvent => {
6+
return errorEvent?.exception?.values?.[0]?.value === 'Edge Server Component Error';
7+
});
8+
9+
await page.goto('/edge-server-components/error');
10+
11+
expect(await errorEventPromise).toBeDefined();
12+
});

packages/e2e-tests/test-applications/node-experimental-fastify-app/tests/propagation.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
7171
'http.status_code': 200,
7272
},
7373
trace_id: traceId,
74+
origin: 'auto.http.otel.http',
7475
},
7576
}),
7677
}),
@@ -93,6 +94,7 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
9394
'http.status_code': 200,
9495
},
9596
trace_id: traceId,
97+
origin: 'auto.http.otel.http',
9698
},
9799
}),
98100
}),
@@ -162,6 +164,7 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
162164
'http.status_code': 200,
163165
},
164166
trace_id: traceId,
167+
origin: 'auto.http.otel.http',
165168
},
166169
}),
167170
}),
@@ -184,6 +187,7 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
184187
'http.status_code': 200,
185188
},
186189
trace_id: traceId,
190+
origin: 'auto.http.otel.http',
187191
},
188192
}),
189193
}),

0 commit comments

Comments
 (0)