Skip to content

Commit ddb2c1d

Browse files
committed
use telem plugin
1 parent e2999c7 commit ddb2c1d

File tree

1 file changed

+10
-1
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+10
-1
lines changed

packages/bundler-plugin-core/src/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
type NormalizedOptions,
2020
} from "./utils/normalizeOptions.ts";
2121
import { createSentryInstance } from "./sentry.ts";
22+
import { telemetryPlugin } from "./plugins/telemetry.ts";
2223

2324
const NODE_VERSION_RANGE = ">=18.18.0";
2425

@@ -42,7 +43,7 @@ function codecovUnpluginFactory({
4243

4344
const options = normalizeOptions(userOptions);
4445

45-
const { sentryHub, sentryMetrics } = createSentryInstance(
46+
const { sentryHub, sentryMetrics, sentryClient } = createSentryInstance(
4647
options,
4748
unpluginMetaContext.framework,
4849
);
@@ -84,6 +85,14 @@ function codecovUnpluginFactory({
8485
}
8586
}
8687

88+
plugins.push(
89+
telemetryPlugin({
90+
sentryClient,
91+
sentryHub,
92+
shouldSendTelemetry: options.telemetry,
93+
}),
94+
);
95+
8796
if (options?.enableBundleAnalysis) {
8897
plugins.push(
8998
bundleAnalysisPluginFactory({

0 commit comments

Comments
 (0)