Skip to content

Commit db34ebc

Browse files
nicohrubecclaude
andcommitted
test(node-core): Add sentry.sdk.integrations to streamed segment span expectation
Same fix applied to node-integration-tests earlier — the node-core-integration-tests streamed basic-usage scenario also needs sentry.sdk.integrations in its full-shape assertion. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent 5e7786b commit db34ebc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • dev-packages/node-core-integration-tests/suites/public-api/startSpan/basic-usage-streamed

dev-packages/node-core-integration-tests/suites/public-api/startSpan/basic-usage-streamed/test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
SEMANTIC_ATTRIBUTE_SENTRY_OP,
44
SEMANTIC_ATTRIBUTE_SENTRY_RELEASE,
55
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
6+
SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,
67
SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME,
78
SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION,
89
SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID,
@@ -129,6 +130,10 @@ test('sends a streamed span envelope with correct spans for a manually started s
129130
[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]: { type: 'integer', value: 1 },
130131
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]: { type: 'string', value: 'sentry.javascript.node-core' },
131132
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]: { type: 'string', value: SDK_VERSION },
133+
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]: {
134+
type: 'array',
135+
value: expect.arrayContaining(['SpanStreaming']),
136+
},
132137
[SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]: { type: 'string', value: segmentSpanId },
133138
[SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]: { type: 'string', value: 'test-span' },
134139
[SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]: { type: 'string', value: '1.0.0' },

0 commit comments

Comments
 (0)