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 @@ -15,8 +15,6 @@ test('Instruments DB calls made during server-side rendering of a page', async (

// One page render produces spans from both injection paths: pg (externalized → runtime module
// hook) and ioredis (bundle-safe allowlisted → build-time loader).
// The postgres span name is low cardinality under span streaming (just the operation); the query
// itself is asserted below via `db.query.text`. The redis span names still carry their full text.
expect(spans).toContainEqual(
expect.objectContaining({
name: 'SELECT',
Expand All @@ -31,7 +29,7 @@ test('Instruments DB calls made during server-side rendering of a page', async (
);
expect(spans).toContainEqual(
expect.objectContaining({
name: 'set page-key [1 other arguments]',
name: 'set localhost:6379',
status: 'ok',
attributes: expect.objectContaining({
'sentry.op': { value: 'db.query', type: 'string' },
Expand All @@ -44,7 +42,7 @@ test('Instruments DB calls made during server-side rendering of a page', async (
);
expect(spans).toContainEqual(
expect.objectContaining({
name: 'get page-key',
name: 'get localhost:6379',
status: 'ok',
attributes: expect.objectContaining({
'sentry.op': { value: 'db.query', type: 'string' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import * as Sentry from '@sentry/solidstart';

Sentry.init({
traceLifecycle: 'static',
dsn: process.env.E2E_TEST_DSN,
environment: 'qa', // dynamic sampling bias to keep transactions
tracesSampleRate: 1.0, // Capture 100% of the transactions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test('Instruments ioredis automatically via build-time orchestrion', async ({ ba
expect(redisSpans).toHaveLength(2);
expect(redisSpans).toContainEqual(
expect.objectContaining({
name: 'set test-key [1 other arguments]',
name: 'set localhost:6379',
status: 'ok',
attributes: expect.objectContaining({
'sentry.op': { type: 'string', value: 'db.query' },
Expand All @@ -41,7 +41,7 @@ test('Instruments ioredis automatically via build-time orchestrion', async ({ ba
);
expect(redisSpans).toContainEqual(
expect.objectContaining({
name: 'get test-key',
name: 'get localhost:6379',
status: 'ok',
attributes: expect.objectContaining({
'sentry.op': { type: 'string', value: 'db.query' },
Expand Down
Loading