Skip to content

Commit ad74746

Browse files
committed
Attempt to unflake
1 parent 4e6097c commit ad74746

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dev-packages/e2e-tests/test-applications/nextjs-app-dir/pages/api/request-instrumentation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ export default (_req: NextApiRequest, res: NextApiResponse) => {
1111
message.on('close', () => {
1212
res.status(200).json({});
1313
});
14+
15+
message.on('error', () => {
16+
res.status(200).json({});
17+
});
1418
});
1519
};

packages/nextjs/src/index.types.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ export declare function init(
1919
options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions | edgeSdk.EdgeOptions,
2020
): void;
2121

22-
// eslint-disable-next-line deprecation/deprecation
23-
export declare const makeMain: typeof clientSdk.makeMain;
24-
// eslint-disable-next-line deprecation/deprecation
25-
export declare const getCurrentHub: typeof clientSdk.getCurrentHub;
2622
export declare const getClient: typeof clientSdk.getClient;
2723
export declare const getRootSpan: typeof serverSdk.getRootSpan;
2824
export declare const continueTrace: typeof clientSdk.continueTrace;

packages/opentelemetry/src/spanExporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class SentrySpanExporter {
5656
// Wait a tick for this, to ensure we avoid race conditions
5757
this._flushTimeout = setTimeout(() => {
5858
this.flush();
59-
}, 1);
59+
}, 50);
6060
}
6161

6262
/** Try to flush any pending spans immediately. */

0 commit comments

Comments
 (0)