File tree 3 files changed +33
-5
lines changed
3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,35 @@ export {
92
92
setupHapiErrorHandler ,
93
93
spotlightIntegration ,
94
94
addOpenTelemetryInstrumentation ,
95
+ metrics ,
96
+ NodeClient ,
97
+ addIntegration ,
98
+ anrIntegration ,
99
+ captureConsoleIntegration ,
100
+ captureSession ,
101
+ connectIntegration ,
102
+ createGetModuleFromFilename ,
103
+ debugIntegration ,
104
+ dedupeIntegration ,
105
+ endSession ,
106
+ extraErrorDataIntegration ,
107
+ getAutoPerformanceIntegrations ,
108
+ httpIntegration ,
109
+ initOpenTelemetry ,
110
+ koaIntegration ,
111
+ nativeNodeFetchIntegration ,
112
+ rewriteFramesIntegration ,
113
+ sessionTimingIntegration ,
114
+ setupConnectErrorHandler ,
115
+ setupKoaErrorHandler ,
116
+ spanToBaggageHeader ,
117
+ spanToJSON ,
118
+ spanToTraceHeader ,
119
+ startSession ,
120
+ trpcMiddleware ,
121
+ zodErrorsIntegration ,
95
122
} from '@sentry/node' ;
96
123
97
- // We can still leave this for the carrier init and type exports
98
- export * from '@sentry/node' ;
99
-
100
124
export { init } from './server/sdk' ;
101
125
102
126
export default sentryAstro ;
Original file line number Diff line number Diff line change 3
3
// exports in this file - which we do below.
4
4
export * from './index.client' ;
5
5
export * from './index.server' ;
6
+ export * from '@sentry/node' ;
7
+
8
+ import type { NodeOptions } from '@sentry/node' ;
6
9
7
10
import type { Integration , Options , StackParser } from '@sentry/types' ;
8
11
@@ -11,7 +14,7 @@ import type * as serverSdk from './index.server';
11
14
import sentryAstro from './index.server' ;
12
15
13
16
/** Initializes Sentry Astro SDK */
14
- export declare function init ( options : Options | clientSdk . BrowserOptions | serverSdk . NodeOptions ) : void ;
17
+ export declare function init ( options : Options | clientSdk . BrowserOptions | NodeOptions ) : void ;
15
18
16
19
export declare const linkedErrorsIntegration : typeof clientSdk . linkedErrorsIntegration ;
17
20
export declare const contextLinesIntegration : typeof clientSdk . contextLinesIntegration ;
@@ -29,5 +32,5 @@ export declare const continueTrace: typeof clientSdk.continueTrace;
29
32
30
33
export declare const Span : clientSdk . Span ;
31
34
32
- export declare const metrics : typeof clientSdk . metrics & typeof serverSdk . metrics ;
35
+ export declare const metrics : typeof clientSdk . metrics & typeof serverSdk ;
33
36
export default sentryAstro ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export function init(options: NodeOptions): void {
10
10
const opts = {
11
11
...options ,
12
12
} ;
13
+
13
14
applySdkMetadata ( opts , 'astro' , [ 'astro' , 'node' ] ) ;
14
15
15
16
initNodeSdk ( opts ) ;
You can’t perform that action at this time.
0 commit comments