11import {
22 SDK_VERSION ,
3- SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT ,
43 SEMANTIC_ATTRIBUTE_SENTRY_OP ,
54 SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
6- SEMANTIC_ATTRIBUTE_SENTRY_RELEASE ,
75 SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE ,
8- SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS ,
96} from '@sentry/core' ;
107import {
118 SENTRY_SEGMENT_NAME_SOURCE ,
@@ -14,6 +11,9 @@ import {
1411 SENTRY_SEGMENT_ID ,
1512 SENTRY_SEGMENT_NAME ,
1613 SENTRY_TRACE_LIFECYCLE ,
14+ SENTRY_ENVIRONMENT ,
15+ SENTRY_RELEASE ,
16+ SENTRY_SDK_INTEGRATIONS ,
1717} from '@sentry/conventions/attributes' ;
1818import { expect , it } from 'vitest' ;
1919import { createRunner } from '../../../runner' ;
@@ -88,9 +88,9 @@ it('sends a streamed span envelope with correct spans for a manually started spa
8888 [ SENTRY_SDK_VERSION ] : { type : 'string' , value : SDK_VERSION } ,
8989 [ SENTRY_SEGMENT_ID ] : { type : 'string' , value : segmentSpanId } ,
9090 [ SENTRY_SEGMENT_NAME ] : { type : 'string' , value : segmentName } ,
91- [ SEMANTIC_ATTRIBUTE_SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
91+ [ SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
9292 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : { type : 'string' , value : 'manual' } ,
93- [ SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
93+ [ SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
9494 } ,
9595 name : 'test-child-span' ,
9696 is_segment : false ,
@@ -113,8 +113,8 @@ it('sends a streamed span envelope with correct spans for a manually started spa
113113 [ SENTRY_SDK_VERSION ] : { type : 'string' , value : SDK_VERSION } ,
114114 [ SENTRY_SEGMENT_ID ] : { type : 'string' , value : segmentSpanId } ,
115115 [ SENTRY_SEGMENT_NAME ] : { type : 'string' , value : segmentName } ,
116- [ SEMANTIC_ATTRIBUTE_SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
117- [ SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
116+ [ SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
117+ [ SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
118118 } ,
119119 links : [
120120 {
@@ -150,8 +150,8 @@ it('sends a streamed span envelope with correct spans for a manually started spa
150150 [ SENTRY_SDK_VERSION ] : { type : 'string' , value : SDK_VERSION } ,
151151 [ SENTRY_SEGMENT_ID ] : { type : 'string' , value : segmentSpanId } ,
152152 [ SENTRY_SEGMENT_NAME ] : { type : 'string' , value : segmentName } ,
153- [ SEMANTIC_ATTRIBUTE_SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
154- [ SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
153+ [ SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
154+ [ SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
155155 } ,
156156 name : 'test-manual-span' ,
157157 is_segment : false ,
@@ -172,9 +172,9 @@ it('sends a streamed span envelope with correct spans for a manually started spa
172172 [ SENTRY_SDK_VERSION ] : { type : 'string' , value : SDK_VERSION } ,
173173 [ SENTRY_SEGMENT_ID ] : { type : 'string' , value : segmentSpanId } ,
174174 [ SENTRY_SEGMENT_NAME ] : { type : 'string' , value : segmentName } ,
175- [ SEMANTIC_ATTRIBUTE_SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
175+ [ SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
176176 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : { type : 'string' , value : 'manual' } ,
177- [ SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
177+ [ SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
178178 } ,
179179 name : 'test-span' ,
180180 is_segment : false ,
@@ -192,18 +192,18 @@ it('sends a streamed span envelope with correct spans for a manually started spa
192192 [ SENTRY_TRACE_LIFECYCLE ] : { type : 'string' , value : 'stream' } ,
193193 [ SENTRY_SDK_NAME ] : { type : 'string' , value : CLOUDFLARE_SDK } ,
194194 [ SENTRY_SDK_VERSION ] : { type : 'string' , value : SDK_VERSION } ,
195- [ SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS ] : {
195+ [ SENTRY_SDK_INTEGRATIONS ] : {
196196 type : 'array' ,
197197 value : expect . arrayContaining ( [ 'SpanStreaming' ] ) ,
198198 } ,
199- [ SEMANTIC_ATTRIBUTE_SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
199+ [ SENTRY_RELEASE ] : { type : 'string' , value : '1.0.0' } ,
200200 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : { type : 'string' , value : 'auto.http.cloudflare' } ,
201201 [ SENTRY_SEGMENT_ID ] : { type : 'string' , value : segmentSpanId } ,
202202 [ SENTRY_SEGMENT_NAME ] : { type : 'string' , value : segmentName } ,
203203 [ SEMANTIC_ATTRIBUTE_SENTRY_OP ] : { type : 'string' , value : 'http.server' } ,
204204 [ SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE ] : { type : 'integer' , value : 1 } ,
205205 [ SENTRY_SEGMENT_NAME_SOURCE ] : { type : 'string' , value : 'route' } ,
206- [ SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
206+ [ SENTRY_ENVIRONMENT ] : { type : 'string' , value : 'production' } ,
207207 'server.address' : {
208208 type : 'string' ,
209209 value : 'localhost' ,
0 commit comments