Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions packages/server-utils/src/orchestrion/runtime/register.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { debug, GLOBAL_OBJ, parseSemver } from '@sentry/core';
import * as Module from 'node:module';
import { pathToFileURL } from 'node:url';

Check failure on line 3 in packages/server-utils/src/orchestrion/runtime/register.ts

View workflow job for this annotation

GitHub Actions / Lint

eslint(no-unused-vars)

Identifier 'pathToFileURL' is imported but never used.
import { SENTRY_INSTRUMENTATIONS } from '../config';
import type { register } from 'node:module';
import ModulePatch from '@apm-js-collab/tracing-hooks';
Expand Down Expand Up @@ -73,19 +73,10 @@
// must use the stable `registerHooks` path above (or none at all).
const diagnosticsPort = createDiagnosticsPort();

let parentURL: string;
/*! rollup-include-cjs-only */
parentURL = pathToFileURL(__filename).href;
/*! rollup-include-cjs-only-end */
/*! rollup-include-esm-only */
parentURL = import.meta.url;
/*! rollup-include-esm-only-end */

// Our own bundled copy of the tracing-hooks async hooks (see
// `src/orchestrion/runtime/hook.mjs`) — the dependency itself is bundled into this package's
// build and no longer resolvable as a bare specifier at runtime.
mod.register('@sentry/server-utils/orchestrion/hook', {
parentURL,
data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort },
transferList: [diagnosticsPort],
});
Expand Down
Loading