Skip to content

Commit 013f7ff

Browse files
author
Luca Forstner
authored
feat(core): Set custom user agent when interacting with Sentry (#296)
1 parent 04a942a commit 013f7ff

File tree

1 file changed

+5
-0
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export function sentryUnpluginFactory({
9292
debug: options.debug,
9393
});
9494

95+
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
96+
process.env[
97+
"SENTRY_PIPELINE"
98+
] = `${unpluginMetaContext.framework}-plugin/${__PACKAGE_VERSION__}`;
99+
95100
function handleRecoverableError(unknownError: unknown) {
96101
sentrySession.status = "abnormal";
97102
try {

0 commit comments

Comments
 (0)