Skip to content

Commit 76fef98

Browse files
authored
feat(metrics): Add missing metric node exports (#18149)
Adds remaining node-based exports for metrics closes #18152
1 parent b03617a commit 76fef98

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ const DEPENDENTS: Dependent[] = [
4141
ignoreExports: [
4242
// Not needed for Astro
4343
'setupFastifyErrorHandler',
44-
// Todo(metrics): Add metrics exports for beta
45-
'metrics',
4644
],
4745
},
4846
{
@@ -56,8 +54,6 @@ const DEPENDENTS: Dependent[] = [
5654
'childProcessIntegration',
5755
'systemErrorIntegration',
5856
'pinoIntegration',
59-
// Todo(metrics): Add metrics exports for beta
60-
'metrics',
6157
],
6258
},
6359
{
@@ -79,8 +75,6 @@ const DEPENDENTS: Dependent[] = [
7975
ignoreExports: [
8076
// Not needed for Serverless
8177
'setupFastifyErrorHandler',
82-
// Todo(metrics): Add metrics exports for beta
83-
'metrics',
8478
],
8579
},
8680
{
@@ -90,8 +84,6 @@ const DEPENDENTS: Dependent[] = [
9084
ignoreExports: [
9185
// Not needed for Serverless
9286
'setupFastifyErrorHandler',
93-
// Todo(metrics): Add metrics exports for beta
94-
'metrics',
9587
],
9688
},
9789
{

packages/astro/src/index.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export {
162162
statsigIntegration,
163163
unleashIntegration,
164164
growthbookIntegration,
165+
metrics,
165166
} from '@sentry/node';
166167

167168
export { init } from './server/sdk';

packages/aws-serverless/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export {
148148
statsigIntegration,
149149
unleashIntegration,
150150
growthbookIntegration,
151+
metrics,
151152
} from '@sentry/node';
152153

153154
export {

packages/bun/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export type {
1616
Thread,
1717
User,
1818
FeatureFlagsIntegration,
19+
Metric,
1920
} from '@sentry/core';
2021

2122
export {
@@ -164,6 +165,7 @@ export {
164165
OpenFeatureIntegrationHook,
165166
statsigIntegration,
166167
unleashIntegration,
168+
metrics,
167169
} from '@sentry/node';
168170

169171
export {

packages/google-cloud-serverless/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export {
148148
OpenFeatureIntegrationHook,
149149
statsigIntegration,
150150
unleashIntegration,
151+
metrics,
151152
} from '@sentry/node';
152153

153154
export {

packages/sveltekit/src/server/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export {
128128
createConsolaReporter,
129129
createSentryWinstonTransport,
130130
vercelAIIntegration,
131+
metrics,
131132
} from '@sentry/node';
132133

133134
// We can still leave this for the carrier init and type exports

0 commit comments

Comments
 (0)