Skip to content

Commit 922d4c2

Browse files
author
Luca Forstner
authored
meta: Remove unplugin references (#56)
1 parent 8c04dce commit 922d4c2

File tree

20 files changed

+49
-49
lines changed

20 files changed

+49
-49
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44
</a>
55
</p>
66

7-
# Sentry Unplugin (WIP)
7+
# Sentry Bundler Plugins (WIP)
88

99
**WARNING: This project is work in progress! Do not yet use it in production. We're happy to receive your feedback!**
1010

11-
Universal Sentry plugin for various JavaScript bundlers. Based on [unjs/uplugin](https://github.com/unjs/unplugin). Currently supports Rollup, Vite, esbuild, Webpack 4 and Webpack 5.
11+
Universal Sentry plugin for various JavaScript bundlers. Based on [unjs/uplugin](https://github.com/getsentry/bundler-plugins). Currently supports Rollup, Vite, esbuild, Webpack 4 and Webpack 5.
1212

1313
Check out the individual packages for more information and examples:
1414

15-
- [Rollup](https://github.com/getsentry/sentry-unplugin/tree/main/packages/rollup-plugin)
16-
- [Vite](https://github.com/getsentry/sentry-unplugin/tree/main/packages/vite-plugin)
17-
- [esbuild](https://github.com/getsentry/sentry-unplugin/tree/main/packages/esbuild-plugin)
18-
- [Webpack](https://github.com/getsentry/sentry-unplugin/tree/main/packages/webpack-plugin)
15+
- [Rollup](https://github.com/getsentry/bundler-plugins/tree/main/packages/rollup-plugin)
16+
- [Vite](https://github.com/getsentry/bundler-plugins/tree/main/packages/vite-plugin)
17+
- [esbuild](https://github.com/getsentry/bundler-plugins/tree/main/packages/esbuild-plugin)
18+
- [Webpack](https://github.com/getsentry/bundler-plugins/tree/main/packages/webpack-plugin)
1919

2020
### Features
2121

22-
The Sentry Unplugin take care of Sentry-related tasks at build time of your JavaScript projects. It supports the following features:
22+
The Sentry Bundler Plugins take care of Sentry-related tasks at build time of your JavaScript projects. It supports the following features:
2323

2424
- Sourcemap upload
2525
- Release creation in Sentry
2626
- Automatic release name discovery (based on CI environment - Vercel, AWS, Heroku, CircleCI, or current Git SHA)
2727
- Automatically associate errors with releases (Release injection)
2828

29-
The Sentry Unplugin can be used as a replacement of [Sentry CLI](https://docs.sentry.io/learn/cli/) for these tasks.
29+
The Sentry Bundler Plugins can be used as a replacement of [Sentry CLI](https://docs.sentry.io/learn/cli/) for these tasks.
3030

3131
### More information
3232

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@sentry/bundler-plugins",
33
"version": "0.0.0",
44
"description": "Sentry Bundler Plugins Monorepo.",
5-
"repository": "[email protected]:getsentry/sentry-unplugin.git",
5+
"repository": "[email protected]:getsentry/bundler-plugins.git",
66
"private": true,
77
"workspaces": [
88
"packages/*"

packages/bundler-plugin-core/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Core package containing the bundler-agnostic functionality used by the bundler p
1212

1313
Check out the individual packages for more information and examples:
1414

15-
- [Rollup](https://github.com/getsentry/sentry-unplugin/tree/main/packages/rollup-plugin)
16-
- [Vite](https://github.com/getsentry/sentry-unplugin/tree/main/packages/vite-plugin)
17-
- [esbuild](https://github.com/getsentry/sentry-unplugin/tree/main/packages/esbuild-plugin)
18-
- [Webpack](https://github.com/getsentry/sentry-unplugin/tree/main/packages/webpack-plugin)
15+
- [Rollup](https://github.com/getsentry/bundler-plugins/tree/main/packages/rollup-plugin)
16+
- [Vite](https://github.com/getsentry/bundler-plugins/tree/main/packages/vite-plugin)
17+
- [esbuild](https://github.com/getsentry/bundler-plugins/tree/main/packages/esbuild-plugin)
18+
- [Webpack](https://github.com/getsentry/bundler-plugins/tree/main/packages/webpack-plugin)
1919

2020
### Features
2121

packages/bundler-plugin-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry/bundler-plugin-core",
33
"version": "0.0.0-alpha.0",
4-
"description": "Official Sentry unplugin",
4+
"description": "Sentry Bundler Plugin Core",
55
"repository": "git://github.com/getsentry/sentry-unplugin.git",
66
"homepage": "https://github.com/getsentry/sentry-unplugin",
77
"author": "Sentry",
@@ -47,7 +47,7 @@
4747
"@rollup/plugin-node-resolve": "13.3.0",
4848
"@rollup/plugin-replace": "^4.0.0",
4949
"@sentry-internal/eslint-config": "0.0.0-alpha.0",
50-
"@sentry-internal/sentry-unplugin-tsconfig": "0.0.0-alpha.0",
50+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "0.0.0-alpha.0",
5151
"@swc/core": "^1.2.205",
5252
"@swc/jest": "^0.2.21",
5353
"@types/jest": "^28.1.3",

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ const unplugin = createUnplugin<Options>((originalOptions, unpluginMetaContext)
132132
*/
133133
buildStart() {
134134
transaction = sentryHub.startTransaction({
135-
op: "sentry-unplugin",
136-
name: "plugin-execution",
135+
op: "function.plugin",
136+
name: "Sentry Bundler Plugin execution",
137137
});
138138
releaseInjectionSpan = addSpanToTransaction(
139139
{ hub: sentryHub, parentSpan: transaction, logger },
140-
"release-injection",
141-
"release-injection"
140+
"function.plugin.inject_release",
141+
"Release injection"
142142
);
143143
},
144144

@@ -278,8 +278,8 @@ const unplugin = createUnplugin<Options>((originalOptions, unpluginMetaContext)
278278
transaction &&
279279
addSpanToTransaction(
280280
{ hub: sentryHub, parentSpan: transaction, logger },
281-
"release-creation",
282-
"release-creation-pipeline"
281+
"function.plugin.release",
282+
"Release pipeline"
283283
);
284284

285285
const release = getReleaseName(options.release);

packages/bundler-plugin-core/src/sentry/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Options } from "../types";
55
import { captureMinimalError } from "./telemetry";
66

77
const API_PATH = "/api/0";
8-
const USER_AGENT = `sentry-unplugin/${__PACKAGE_VERSION__}`;
8+
const USER_AGENT = `sentry-bundler-plugin/${__PACKAGE_VERSION__}`;
99

1010
const sentryApiAxiosInstance = ({
1111
authToken,

packages/bundler-plugin-core/src/sentry/releasePipeline.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function createNewRelease(
1616
options: Options,
1717
ctx: BuildContext
1818
): Promise<string> {
19-
const span = addSpanToTransaction(ctx, "create-new-release");
19+
const span = addSpanToTransaction(ctx, "function.plugin.create_release");
2020

2121
// TODO: pull these checks out of here and simplify them
2222
if (options.authToken === undefined) {
@@ -54,7 +54,7 @@ export async function uploadSourceMaps(
5454
options: Options,
5555
ctx: BuildContext
5656
): Promise<string> {
57-
const span = addSpanToTransaction(ctx, "upload-sourceMaps");
57+
const span = addSpanToTransaction(ctx, "function.plugin.upload_sourcemaps");
5858
// This is what Sentry CLI does:
5959
// TODO: 0. Preprocess source maps
6060
// - (Out of scope for now)
@@ -137,7 +137,7 @@ export async function finalizeRelease(
137137
options: Options,
138138
ctx: BuildContext
139139
): Promise<string> {
140-
const span = addSpanToTransaction(ctx, "finalize-release");
140+
const span = addSpanToTransaction(ctx, "function.plugin.finalize_release");
141141

142142
if (options.finalize) {
143143
const { authToken, org, url, project } = options;
@@ -168,7 +168,7 @@ export async function cleanArtifacts(
168168
options: Options,
169169
ctx: BuildContext
170170
): Promise<string> {
171-
const span = addSpanToTransaction(ctx, "clean-artifacts");
171+
const span = addSpanToTransaction(ctx, "function.plugin.clean_artifacts");
172172

173173
if (options.cleanArtifacts) {
174174
// TODO: pull these checks out of here and simplify them
@@ -209,7 +209,7 @@ export async function setCommits(
209209
/* version: string, */
210210
ctx: BuildContext
211211
): Promise<string> {
212-
const span = addSpanToTransaction(ctx, "set-commits");
212+
const span = addSpanToTransaction(ctx, "function.plugin.set_commits");
213213

214214
span?.finish();
215215
return Promise.resolve("Noop");
@@ -219,7 +219,7 @@ export async function addDeploy(
219219
/* version: string, */
220220
ctx: BuildContext
221221
): Promise<string> {
222-
const span = addSpanToTransaction(ctx, "add-deploy");
222+
const span = addSpanToTransaction(ctx, "function.plugin.add_deploy");
223223

224224
span?.finish();
225225
return Promise.resolve("Noop");

packages/bundler-plugin-core/src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@sentry-internal/sentry-unplugin-tsconfig/base-config.json",
3+
"extends": "@sentry-internal/sentry-bundler-plugin-tsconfig/base-config.json",
44
"include": ["./**/*"],
55
"compilerOptions": {
66
"esModuleInterop": true,

packages/esbuild-plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@sentry/esbuild-plugin",
33
"version": "0.0.0-alpha.0",
44
"description": "Official Sentry esbuild plugin",
5-
"repository": "git://github.com/getsentry/sentry-unplugin.git",
6-
"homepage": "https://github.com/getsentry/sentry-unplugin/tree/main/packages/esbuild-plugin",
5+
"repository": "git@github.com:getsentry/bundler-plugins.git",
6+
"homepage": "https://github.com/getsentry/bundler-plugins/tree/main/packages/esbuild-plugin",
77
"author": "Sentry",
88
"license": "MIT",
99
"keywords": [
@@ -47,7 +47,7 @@
4747
"@rollup/plugin-json": "4.1.0",
4848
"@rollup/plugin-node-resolve": "13.3.0",
4949
"@sentry-internal/eslint-config": "0.0.0-alpha.0",
50-
"@sentry-internal/sentry-unplugin-tsconfig": "0.0.0-alpha.0",
50+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "0.0.0-alpha.0",
5151
"@swc/core": "^1.2.205",
5252
"@swc/jest": "^0.2.21",
5353
"@types/jest": "^28.1.3",

packages/esbuild-plugin/src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@sentry-internal/sentry-unplugin-tsconfig/base-config.json",
3+
"extends": "@sentry-internal/sentry-bundler-plugin-tsconfig/base-config.json",
44
"include": ["./**/*", "../package.json"],
55
"compilerOptions": {
66
"esModuleInterop": true

0 commit comments

Comments
 (0)