Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/nextjs/src/server/httpIntegration.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Integrations } from '@sentry/node';
const { Http: OriginalHttp } = Integrations;

/**
* A custom HTTP integration where we always enable tracing.
*/
export class Http extends OriginalHttp {
public constructor(options?: ConstructorParameters<typeof OriginalHttp>[0]) {
export class Http extends Integrations.Http {
public constructor(options?: ConstructorParameters<typeof Integrations.Http>[0]) {
super({
...options,
tracing: true,
Expand Down
5 changes: 2 additions & 3 deletions packages/nextjs/src/server/onUncaughtExceptionIntegration.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Integrations } from '@sentry/node';
const { OnUncaughtException: OriginalOnUncaughtException } = Integrations;

/**
* A custom OnUncaughtException integration that does not exit by default.
*/
export class OnUncaughtException extends OriginalOnUncaughtException {
public constructor(options?: ConstructorParameters<typeof OriginalOnUncaughtException>[0]) {
export class OnUncaughtException extends Integrations.OnUncaughtException {
public constructor(options?: ConstructorParameters<typeof Integrations.OnUncaughtException>[0]) {
super({
exitEvenIfOtherHandlersAreRegistered: false,
...options,
Expand Down