Skip to content

Commit 4478ec6

Browse files
committed
fix import
1 parent 202624b commit 4478ec6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/cloudflare/src/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
22
captureException,
3+
flushIfServerless,
34
SEMANTIC_ATTRIBUTE_SENTRY_OP,
45
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
56
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
67
startSpan,
78
withIsolationScope,
89
} from '@sentry/core';
9-
import { flushIfServerless } from '@sentry/core/src';
1010
import { setAsyncLocalStorageAsyncContextStrategy } from './async';
1111
import type { CloudflareOptions } from './client';
1212
import { isInstrumented, markAsInstrumented } from './instrument';

packages/nuxt/src/runtime/plugins/sentry.server.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import { debug, getDefaultIsolationScope, getIsolationScope, withIsolationScope } from '@sentry/core';
1+
import {
2+
debug,
3+
flushIfServerless,
4+
getDefaultIsolationScope,
5+
getIsolationScope,
6+
withIsolationScope,
7+
} from '@sentry/core';
28
// eslint-disable-next-line import/no-extraneous-dependencies
39
import { type EventHandler } from 'h3';
410
// eslint-disable-next-line import/no-extraneous-dependencies
511
import { defineNitroPlugin } from 'nitropack/runtime';
612
import type { NuxtRenderHTMLContext } from 'nuxt/app';
713
import { sentryCaptureErrorHook } from '../hooks/captureErrorHook';
814
import { updateRouteBeforeResponse } from '../hooks/updateRouteBeforeResponse';
9-
import { addSentryTracingMetaTags, flushIfServerless } from '../utils';
15+
import { addSentryTracingMetaTags } from '../utils';
1016

1117
export default defineNitroPlugin(nitroApp => {
1218
nitroApp.h3App.handler = patchEventHandler(nitroApp.h3App.handler);

0 commit comments

Comments
 (0)