Skip to content

Commit 17482e2

Browse files
committed
tests: update assertions
1 parent f9d02da commit 17482e2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

dev-packages/e2e-tests/test-applications/nuxt-3/tests/cache.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ test.describe('Cache Instrumentation', () => {
4545
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'cache.get_item',
4646
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.cache.nuxt',
4747
[SEMANTIC_ATTRIBUTE_CACHE_HIT]: false,
48-
'nuxt.storage.op': 'getItem',
49-
'nuxt.storage.mount': expect.stringMatching(/^(cache:)?$/),
48+
'db.operation.name': 'getItem',
49+
'db.collection.name': expect.stringMatching(/^(cache)?$/),
5050
});
5151
}
5252

@@ -62,8 +62,8 @@ test.describe('Cache Instrumentation', () => {
6262
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'cache.get_item',
6363
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.cache.nuxt',
6464
[SEMANTIC_ATTRIBUTE_CACHE_HIT]: true,
65-
'nuxt.storage.op': 'getItem',
66-
'nuxt.storage.mount': expect.stringMatching(/^(cache:)?$/),
65+
'db.operation.name': 'getItem',
66+
'db.collection.name': expect.stringMatching(/^(cache)?$/),
6767
});
6868
}
6969

@@ -80,8 +80,8 @@ test.describe('Cache Instrumentation', () => {
8080
expect(cacheSetSpan.data).toMatchObject({
8181
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'cache.set_item',
8282
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.cache.nuxt',
83-
'nuxt.storage.op': 'setItem',
84-
'nuxt.storage.mount': expect.stringMatching(/^(cache:)?$/),
83+
'db.operation.name': 'setItem',
84+
'db.collection.name': expect.stringMatching(/^(cache)?$/),
8585
});
8686
}
8787

dev-packages/e2e-tests/test-applications/nuxt-4/tests/cache.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ test.describe('Cache Instrumentation', () => {
4545
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'cache.get_item',
4646
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.cache.nuxt',
4747
[SEMANTIC_ATTRIBUTE_CACHE_HIT]: false,
48-
'nuxt.storage.op': 'getItem',
49-
'nuxt.storage.mount': expect.stringMatching(/^(cache:)?$/),
48+
'db.operation.name': 'getItem',
49+
'db.collection.name': expect.stringMatching(/^(cache)?$/),
5050
});
5151
}
5252

@@ -62,8 +62,8 @@ test.describe('Cache Instrumentation', () => {
6262
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'cache.get_item',
6363
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.cache.nuxt',
6464
[SEMANTIC_ATTRIBUTE_CACHE_HIT]: true,
65-
'nuxt.storage.op': 'getItem',
66-
'nuxt.storage.mount': expect.stringMatching(/^(cache:)?$/),
65+
'db.operation.name': 'getItem',
66+
'db.collection.name': expect.stringMatching(/^(cache)?$/),
6767
});
6868
}
6969

@@ -80,8 +80,8 @@ test.describe('Cache Instrumentation', () => {
8080
expect(cacheSetSpan.data).toMatchObject({
8181
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'cache.set_item',
8282
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.cache.nuxt',
83-
'nuxt.storage.op': 'setItem',
84-
'nuxt.storage.mount': expect.stringMatching(/^(cache:)?$/),
83+
'db.operation.name': 'setItem',
84+
'db.collection.name': expect.stringMatching(/^(cache)?$/),
8585
});
8686
}
8787

0 commit comments

Comments
 (0)