-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13036 from getsentry/prepare-release/8.20.0
meta(changelog): Update changelog for 8.20.0
- Loading branch information
Showing
162 changed files
with
3,420 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: 💡 [Internal] Blank Issue | ||
description: Only for Sentry Employees! Create an issue without a template. | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
dev-packages/e2e-tests/test-applications/nestjs-basic/src/app.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ages/e2e-tests/test-applications/nestjs-distributed-tracing/src/trace-initiator.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
dev-packages/e2e-tests/test-applications/nestjs-with-submodules/src/app.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ubmodules/src/example-module-global-filter-wrong-registration-order/example.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { ExampleExceptionWrongRegistrationOrder } from './example.exception'; | ||
|
||
@Controller('example-module-wrong-order') | ||
export class ExampleController { | ||
constructor() {} | ||
|
||
@Get('/expected-exception') | ||
getCaughtException(): string { | ||
throw new ExampleExceptionWrongRegistrationOrder(); | ||
} | ||
|
||
@Get('/unexpected-exception') | ||
getUncaughtException(): string { | ||
throw new Error(`This is an uncaught exception!`); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...submodules/src/example-module-global-filter-wrong-registration-order/example.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class ExampleExceptionWrongRegistrationOrder extends Error { | ||
constructor() { | ||
super('Something went wrong in the example module!'); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...th-submodules/src/example-module-global-filter-wrong-registration-order/example.filter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ArgumentsHost, BadRequestException, Catch } from '@nestjs/common'; | ||
import { BaseExceptionFilter } from '@nestjs/core'; | ||
import { ExampleExceptionWrongRegistrationOrder } from './example.exception'; | ||
|
||
@Catch(ExampleExceptionWrongRegistrationOrder) | ||
export class ExampleExceptionFilterWrongRegistrationOrder extends BaseExceptionFilter { | ||
catch(exception: unknown, host: ArgumentsHost) { | ||
if (exception instanceof ExampleExceptionWrongRegistrationOrder) { | ||
return super.catch(new BadRequestException(exception.message), host); | ||
} | ||
return super.catch(exception, host); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...th-submodules/src/example-module-global-filter-wrong-registration-order/example.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { APP_FILTER } from '@nestjs/core'; | ||
import { ExampleController } from './example.controller'; | ||
import { ExampleExceptionFilterWrongRegistrationOrder } from './example.filter'; | ||
|
||
@Module({ | ||
imports: [], | ||
controllers: [ExampleController], | ||
providers: [ | ||
{ | ||
provide: APP_FILTER, | ||
useClass: ExampleExceptionFilterWrongRegistrationOrder, | ||
}, | ||
], | ||
}) | ||
export class ExampleModuleGlobalFilterWrongRegistrationOrder {} |
25 changes: 25 additions & 0 deletions
25
...pplications/nestjs-with-submodules/src/example-module-global-filter/example.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import * as Sentry from '@sentry/nestjs'; | ||
import { ExampleException } from './example.exception'; | ||
|
||
@Controller('example-module') | ||
export class ExampleController { | ||
constructor() {} | ||
|
||
@Get('/expected-exception') | ||
getCaughtException(): string { | ||
throw new ExampleException(); | ||
} | ||
|
||
@Get('/unexpected-exception') | ||
getUncaughtException(): string { | ||
throw new Error(`This is an uncaught exception!`); | ||
} | ||
|
||
@Get('/transaction') | ||
testTransaction() { | ||
Sentry.startSpan({ name: 'test-span' }, () => { | ||
Sentry.startSpan({ name: 'child-span' }, () => {}); | ||
}); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...applications/nestjs-with-submodules/src/example-module-local-filter/example.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Controller, Get, UseFilters } from '@nestjs/common'; | ||
import { LocalExampleException } from './example.exception'; | ||
import { LocalExampleExceptionFilter } from './example.filter'; | ||
|
||
@Controller('example-module-local-filter') | ||
@UseFilters(LocalExampleExceptionFilter) | ||
export class ExampleControllerLocalFilter { | ||
constructor() {} | ||
|
||
@Get('/expected-exception') | ||
getCaughtException() { | ||
throw new LocalExampleException(); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...-applications/nestjs-with-submodules/src/example-module-local-filter/example.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class LocalExampleException extends Error { | ||
constructor() { | ||
super('Something went wrong in the example module with local filter!'); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...est-applications/nestjs-with-submodules/src/example-module-local-filter/example.filter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ArgumentsHost, BadRequestException, Catch } from '@nestjs/common'; | ||
import { BaseExceptionFilter } from '@nestjs/core'; | ||
import { LocalExampleException } from './example.exception'; | ||
|
||
@Catch(LocalExampleException) | ||
export class LocalExampleExceptionFilter extends BaseExceptionFilter { | ||
catch(exception: unknown, host: ArgumentsHost) { | ||
if (exception instanceof LocalExampleException) { | ||
return super.catch(new BadRequestException(exception.message), host); | ||
} | ||
return super.catch(exception, host); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...est-applications/nestjs-with-submodules/src/example-module-local-filter/example.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { ExampleControllerLocalFilter } from './example.controller'; | ||
|
||
@Module({ | ||
imports: [], | ||
controllers: [ExampleControllerLocalFilter], | ||
providers: [], | ||
}) | ||
export class ExampleModuleLocalFilter {} |
12 changes: 0 additions & 12 deletions
12
...e-tests/test-applications/nestjs-with-submodules/src/example-module/example.controller.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.