Skip to content

Commit

Permalink
Attempt to unflake
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Mar 26, 2024
1 parent 4e6097c commit ad74746
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ export default (_req: NextApiRequest, res: NextApiResponse) => {
message.on('close', () => {
res.status(200).json({});
});

message.on('error', () => {
res.status(200).json({});
});
});
};
4 changes: 0 additions & 4 deletions packages/nextjs/src/index.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export declare function init(
options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions | edgeSdk.EdgeOptions,
): void;

// eslint-disable-next-line deprecation/deprecation
export declare const makeMain: typeof clientSdk.makeMain;
// eslint-disable-next-line deprecation/deprecation
export declare const getCurrentHub: typeof clientSdk.getCurrentHub;
export declare const getClient: typeof clientSdk.getClient;
export declare const getRootSpan: typeof serverSdk.getRootSpan;
export declare const continueTrace: typeof clientSdk.continueTrace;
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry/src/spanExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class SentrySpanExporter {
// Wait a tick for this, to ensure we avoid race conditions
this._flushTimeout = setTimeout(() => {
this.flush();
}, 1);
}, 50);
}

/** Try to flush any pending spans immediately. */
Expand Down

0 comments on commit ad74746

Please sign in to comment.