File tree 1 file changed +7
-7
lines changed
packages/tracing-internal/src/browser
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -157,19 +157,19 @@ const DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {
157
157
* any routing library. This integration uses {@see IdleTransaction} to create transactions.
158
158
*/
159
159
export class BrowserTracing implements Integration {
160
- // This class currently doesn't have a static `id` field like the other integration classes, because it prevented
161
- // @sentry /tracing from being treeshaken. Tree shakers do not like static fields, because they behave like side effects.
162
- // TODO: Come up with a better plan, than using static fields on integration classes, and use that plan on all
163
- // integrations.
164
-
165
- /** Browser Tracing integration options */
166
- public options : BrowserTracingOptions ;
160
+ /**
161
+ * @inheritDoc
162
+ */
163
+ public static id : string = BROWSER_TRACING_INTEGRATION_ID ;
167
164
168
165
/**
169
166
* @inheritDoc
170
167
*/
171
168
public name : string = BROWSER_TRACING_INTEGRATION_ID ;
172
169
170
+ /** Browser Tracing integration options */
171
+ public options : BrowserTracingOptions ;
172
+
173
173
private _getCurrentHub ?: ( ) => Hub ;
174
174
175
175
private _latestRouteName ?: string ;
You can’t perform that action at this time.
0 commit comments