UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

34 lines • 1.38 kB
import type { SentryRollupPluginOptions as SentryRollupPluginOptionsBase } from '@sentry/bundler-plugins/rollup'; import type { InstrumentationConfig } from '@sentry/server-utils'; import type { RollupPlugin } from '@sentry/server-utils/orchestrion/rollup'; export type SentryRollupPluginOptions = SentryRollupPluginOptionsBase & { /** * @ignore This is for internal use only when this plugin is consumed by a framework SDK */ instrumentations?: InstrumentationConfig[]; /** * Automatic instrumentation of server-side dependencies at build time. * * Set to `false` to turn it off. * * @default true */ buildTimeInstrumentation?: boolean; }; /** * Rollup plugin that bundles the Sentry Rollup bundler plugin (source maps, * release injection, bundle size optimizations, …) together with the * code transformer (build-time `diagnostics_channel` instrumentation * for Node libraries). * * It is a drop-in replacement for `@sentry/bundler-plugins/rollup` and accepts * the same options. * @example * ```ts * // rollup.config.js * import { sentryRollupPlugin } from '@sentry/node/rollup'; * export default { plugins: [sentryRollupPlugin({ org: '…', project: '…' })] }; * ``` */ export declare function sentryRollupPlugin(options?: SentryRollupPluginOptions): RollupPlugin[]; //# sourceMappingURL=rollup.d.ts.map