Skip to content

Commit 77743be

Browse files
authored
fix: Make Vue tracing options optional (#2897)
* fix: Make Vue tracing options optional
1 parent aca5a69 commit 77743be

File tree

1 file changed

+4
-2
lines changed
  • packages/integrations/src

1 file changed

+4
-2
lines changed

packages/integrations/src/vue.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ export class Vue implements Integration {
151151
/**
152152
* @inheritDoc
153153
*/
154-
public constructor(options: Partial<IntegrationOptions>) {
154+
public constructor(
155+
options: Partial<Omit<IntegrationOptions, 'tracingOptions'> & { tracingOptions: Partial<TracingOptions> }>,
156+
) {
155157
this._options = {
156158
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
157159
Vue: getGlobalObject<any>().Vue,
@@ -313,7 +315,7 @@ export class Vue implements Integration {
313315
}
314316
};
315317

316-
// Each compomnent has it's own scope, so all activities are only related to one of them
318+
// Each component has it's own scope, so all activities are only related to one of them
317319
this._options.tracingOptions.hooks.forEach(operation => {
318320
// Retrieve corresponding hooks from Vue lifecycle.
319321
// eg. mount => ['beforeMount', 'mounted']

0 commit comments

Comments
 (0)