Skip to content

Commit 3f340d1

Browse files
AbhiPrasadonurtemizkan
authored andcommitted
fix(integrations): Use ui category for vue span operations (#4219)
As per the new spec in https://develop.sentry.dev/sdk/performance/span-operations/#js-frameworks, we now want to prefix our vue spans operations with `ui`.
1 parent b577645 commit 3f340d1

File tree

1 file changed

+5
-3
lines changed
  • packages/integrations/src

1 file changed

+5
-3
lines changed

packages/integrations/src/vue.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const BROWSER_TRACING_GETTER = ({
1919
id: 'BrowserTracing',
2020
} as any) as IntegrationClass<Integration>;
2121

22+
const VUE_OP = 'ui.vue';
23+
2224
/** Global Vue object limited to the methods/attributes we require */
2325
interface VueInstance {
2426
config: {
@@ -268,7 +270,7 @@ export class Vue implements Integration {
268270
if (transaction) {
269271
this._rootSpan = transaction.startChild({
270272
description: 'Application Render',
271-
op: 'vue',
273+
op: VUE_OP,
272274
});
273275
}
274276
// Use functionality from @sentry/tracing
@@ -277,7 +279,7 @@ export class Vue implements Integration {
277279
if (activeTransaction) {
278280
this._rootSpan = activeTransaction.startChild({
279281
description: 'Application Render',
280-
op: 'vue',
282+
op: VUE_OP,
281283
});
282284
}
283285
}
@@ -309,7 +311,7 @@ export class Vue implements Integration {
309311
if (this._rootSpan) {
310312
spans[operation] = this._rootSpan.startChild({
311313
description: `Vue <${name}>`,
312-
op: operation,
314+
op: `${VUE_OP}.${operation}`,
313315
});
314316
}
315317
});

0 commit comments

Comments
 (0)