Skip to content

Commit 93e99f6

Browse files
committed
Some cleanup
1 parent 98c35d7 commit 93e99f6

File tree

5 files changed

+37
-35
lines changed

5 files changed

+37
-35
lines changed

packages/node-core/src/otel/instrument.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function generateInstrumentOnce<
2525
*/
2626
export function generateInstrumentOnce<Options>(
2727
name: string,
28+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2829
creatorOrClass: (new (...args: any[]) => Instrumentation) | ((options?: Options) => Instrumentation),
2930
optionsCallback?: (options: Options) => unknown,
3031
): ((options: Options) => Instrumentation) & { id: string } {

packages/node-core/src/proxy/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828

2929
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
3030
/* eslint-disable @typescript-eslint/no-unused-vars */
31+
// eslint-disable-next-line import/no-duplicates
3132
import type * as http from 'node:http';
33+
// eslint-disable-next-line import/no-duplicates
3234
import type { OutgoingHttpHeaders } from 'node:http';
3335
import * as net from 'node:net';
3436
import * as tls from 'node:tls';

packages/node-core/test/sdk/init.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Integration } from '@sentry/core';
22
import { logger } from '@sentry/core';
33
import * as SentryOpentelemetry from '@sentry/opentelemetry';
4-
import { type Mock, type MockInstance, afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
4+
import { type Mock, afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
55
import { getClient } from '../../src/';
66
import { init, validateOpenTelemetrySetup } from '../../src/sdk';
77
import { NodeClient } from '../../src/sdk/client';

packages/node/src/index.ts

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,6 @@ import { logger } from '@sentry/node-core';
33
export { httpIntegration } from './integrations/http';
44
export { nativeNodeFetchIntegration } from './integrations/node-fetch';
55
export { fsIntegration } from './integrations/fs';
6-
7-
export {
8-
nodeContextIntegration,
9-
contextLinesIntegration,
10-
localVariablesIntegration,
11-
modulesIntegration,
12-
onUncaughtExceptionIntegration,
13-
onUnhandledRejectionIntegration,
14-
anrIntegration,
15-
disableAnrDetectionForCallback,
16-
spotlightIntegration,
17-
childProcessIntegration,
18-
createSentryWinstonTransport,
19-
SentryContextManager,
20-
generateInstrumentOnce,
21-
instrumentWhenWrapped,
22-
INSTRUMENTED,
23-
getSentryRelease,
24-
defaultStackParser,
25-
createGetModuleFromFilename,
26-
makeNodeTransport,
27-
NodeClient,
28-
cron,
29-
NODE_VERSION,
30-
validateOpenTelemetrySetup,
31-
addOriginToSpan,
32-
getRequestUrl,
33-
isCjs,
34-
ensureIsWrapped,
35-
createMissingInstrumentationContext,
36-
envToBool,
37-
} from '@sentry/node-core';
38-
396
export { expressIntegration, expressErrorHandler, setupExpressErrorHandler } from './integrations/tracing/express';
407
export { fastifyIntegration, setupFastifyErrorHandler } from './integrations/tracing/fastify';
418
export { graphqlIntegration } from './integrations/tracing/graphql';
@@ -174,4 +141,36 @@ export type {
174141
FeatureFlagsIntegration,
175142
} from '@sentry/core';
176143

144+
export {
145+
nodeContextIntegration,
146+
contextLinesIntegration,
147+
localVariablesIntegration,
148+
modulesIntegration,
149+
onUncaughtExceptionIntegration,
150+
onUnhandledRejectionIntegration,
151+
anrIntegration,
152+
disableAnrDetectionForCallback,
153+
spotlightIntegration,
154+
childProcessIntegration,
155+
createSentryWinstonTransport,
156+
SentryContextManager,
157+
generateInstrumentOnce,
158+
instrumentWhenWrapped,
159+
INSTRUMENTED,
160+
getSentryRelease,
161+
defaultStackParser,
162+
createGetModuleFromFilename,
163+
makeNodeTransport,
164+
NodeClient,
165+
cron,
166+
NODE_VERSION,
167+
validateOpenTelemetrySetup,
168+
addOriginToSpan,
169+
getRequestUrl,
170+
isCjs,
171+
ensureIsWrapped,
172+
createMissingInstrumentationContext,
173+
envToBool,
174+
} from '@sentry/node-core';
175+
177176
export { logger };

packages/node/test/sdk/init.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Integration } from '@sentry/core';
22
import { logger } from '@sentry/core';
33
import * as SentryOpentelemetry from '@sentry/opentelemetry';
44
import { type Mock, type MockInstance, afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
5-
import { getClient , NodeClient,validateOpenTelemetrySetup } from '../../src/';
5+
import { getClient, NodeClient, validateOpenTelemetrySetup } from '../../src/';
66
import * as auto from '../../src/integrations/tracing';
77
import { init } from '../../src/sdk';
88
import { cleanupOtel } from '../helpers/mockSdkInit';

0 commit comments

Comments
 (0)