We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c4a136 commit 4f68800Copy full SHA for 4f68800
build-utils/sentry-instrumentation.ts
@@ -139,7 +139,11 @@ class SentryInstrumentation {
139
startTime,
140
});
141
142
- this.Sentry?.withActiveSpan(span || null, () => {
+ if (!span) {
143
+ return;
144
+ }
145
+
146
+ this.Sentry.withActiveSpan(span, () => {
147
this.Sentry?.startInactiveSpan({
148
op: 'build',
149
name: 'webpack build',
@@ -156,7 +160,7 @@ class SentryInstrumentation {
156
160
}).end(endTime);
157
161
158
162
159
- span?.end();
163
+ span.end();
164
}
165
166
apply(compiler: webpack.Compiler) {
0 commit comments