Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ test('sends component tracking spans when `trackComponents` is enabled', async (
const errorButtonSpan = rootSpan.spans.find((span: Span) => span.description === 'Vue <ErrorButton>');

const expected = {
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.vue.mount' },
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.mount' },
description: 'Vue <ErrorButton>',
op: 'ui.vue.mount',
op: 'ui.mount',
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
span_id: expect.stringMatching(/[a-f0-9]{16}/),
start_timestamp: expect.any(Number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ test('sends component tracking spans when `trackComponents` is enabled', async (
const errorButtonSpan = rootSpan.spans.find(span => span.description === 'Vue <ErrorButton>');

const expected = {
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.vue.mount' },
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.mount' },
description: 'Vue <ErrorButton>',
op: 'ui.vue.mount',
op: 'ui.mount',
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
span_id: expect.stringMatching(/[a-f0-9]{16}/),
start_timestamp: expect.any(Number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ test('sends component tracking spans when `trackComponents` is enabled', async (
const errorButtonSpan = rootSpan.spans.find((span: Span) => span.description === 'Vue <ErrorButton>');

const expected = {
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.vue.mount' },
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.mount' },
description: 'Vue <ErrorButton>',
op: 'ui.vue.mount',
op: 'ui.mount',
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
span_id: expect.stringMatching(/[a-f0-9]{16}/),
start_timestamp: expect.any(Number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ test('sends component tracking spans when `trackComponents` is enabled', async (
const errorButtonSpan = rootSpan.spans.find((span: Span) => span.description === 'Vue <ErrorButton>');

const expected = {
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.vue.mount' },
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.mount' },
description: 'Vue <ErrorButton>',
op: 'ui.vue.mount',
op: 'ui.mount',
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
span_id: expect.stringMatching(/[a-f0-9]{16}/),
start_timestamp: expect.any(Number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ test('sends component tracking spans when `trackComponents` is enabled', async (
const errorButtonSpan = rootSpan.spans.find((span: Span) => span.description === 'Vue <ErrorButton>');

const expected = {
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.vue.mount' },
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.mount' },
description: 'Vue <ErrorButton>',
op: 'ui.vue.mount',
op: 'ui.mount',
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
span_id: expect.stringMatching(/[a-f0-9]{16}/),
start_timestamp: expect.any(Number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ test('sends component tracking spans when `trackComponents` is enabled', async (
const errorButtonSpan = rootSpan.spans.find((span: Span) => span.description === 'Vue <ErrorButton>');

const expected = {
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.vue.mount' },
data: { 'sentry.origin': 'auto.ui.vue', 'sentry.op': 'ui.mount' },
description: 'Vue <ErrorButton>',
op: 'ui.vue.mount',
op: 'ui.mount',
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
span_id: expect.stringMatching(/[a-f0-9]{16}/),
start_timestamp: expect.any(Number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ test('sends a pageload transaction with component tracking init spans', async ({
expect(pageloadTransaction.spans).toEqual(
expect.arrayContaining([
expect.objectContaining({
op: 'ui.svelte.init',
op: 'ui.mount',
description: '<App>',
data: {
'sentry.op': 'ui.svelte.init',
'sentry.op': 'ui.mount',
'sentry.origin': 'auto.ui.svelte',
},
}),
expect.objectContaining({
op: 'ui.svelte.init',
op: 'ui.mount',
description: '<Counter>',
data: {
'sentry.op': 'ui.svelte.init',
'sentry.op': 'ui.mount',
'sentry.origin': 'auto.ui.svelte',
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,27 @@ test.describe('client-specific performance events', () => {
expect(componentTxnEvent.spans).toEqual(
expect.arrayContaining([
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<components/+page>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component1>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component2>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component3>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,27 @@ test.describe('client-specific performance events', () => {
expect(componentTxnEvent.spans).toEqual(
expect.arrayContaining([
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<components/+page>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component1>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component2>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component3>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,51 +96,51 @@ test.describe('client-specific performance events', () => {
expect(componentTxnEvent.spans).toEqual(
expect.arrayContaining([
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<components/+page>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component1>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component2>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component3>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.update', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.update', 'sentry.origin': 'auto.ui.svelte' },
description: '<components/+page>',
op: 'ui.svelte.update',
op: 'ui.update',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.update', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.update', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component1>',
op: 'ui.svelte.update',
op: 'ui.update',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.update', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.update', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component2>',
op: 'ui.svelte.update',
op: 'ui.update',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.update', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.update', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component3>',
op: 'ui.svelte.update',
op: 'ui.update',
origin: 'auto.ui.svelte',
}),
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@ test.describe('client-specific performance events', () => {
expect(componentTxnEvent.spans).toEqual(
expect.arrayContaining([
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<components/+page>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component1>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component2>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
expect.objectContaining({
data: { 'sentry.op': 'ui.svelte.init', 'sentry.origin': 'auto.ui.svelte' },
data: { 'sentry.op': 'ui.mount', 'sentry.origin': 'auto.ui.svelte' },
description: '<Component3>',
op: 'ui.svelte.init',
op: 'ui.mount',
origin: 'auto.ui.svelte',
}),
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,54 +163,54 @@ test('sends a lifecycle span for each tracked components', async ({ page }) => {
// enabled by default
expect.objectContaining({
data: {
'sentry.op': 'ui.vue.render',
'sentry.op': 'ui.render',
'sentry.origin': 'auto.ui.vue',
},
description: 'Application Render',
op: 'ui.vue.render',
op: 'ui.render',
origin: 'auto.ui.vue',
}),
// enabled by default
expect.objectContaining({
data: {
'sentry.op': 'ui.vue.mount',
'sentry.op': 'ui.mount',
'sentry.origin': 'auto.ui.vue',
},
description: 'Vue <Root>',
op: 'ui.vue.mount',
op: 'ui.mount',
origin: 'auto.ui.vue',
}),

// without `<>`
expect.objectContaining({
data: {
'sentry.op': 'ui.vue.mount',
'sentry.op': 'ui.mount',
'sentry.origin': 'auto.ui.vue',
},
description: 'Vue <ComponentMainView>',
op: 'ui.vue.mount',
op: 'ui.mount',
origin: 'auto.ui.vue',
}),

// with `<>`
expect.objectContaining({
data: {
'sentry.op': 'ui.vue.mount',
'sentry.op': 'ui.mount',
'sentry.origin': 'auto.ui.vue',
},
description: 'Vue <ComponentOneView>',
op: 'ui.vue.mount',
op: 'ui.mount',
origin: 'auto.ui.vue',
}),

// not tracked
expect.not.objectContaining({
data: {
'sentry.op': 'ui.vue.mount',
'sentry.op': 'ui.mount',
'sentry.origin': 'auto.ui.vue',
},
description: 'Vue <ComponentTwoView>',
op: 'ui.vue.mount',
op: 'ui.mount',
origin: 'auto.ui.vue',
}),
]),
Expand Down
5 changes: 0 additions & 5 deletions packages/react/src/constants.ts

This file was deleted.

Loading
Loading