Skip to content

Commit d2ee1da

Browse files
nicohrubeccodex
andcommitted
ref(core): Use SDK metadata constants from conventions
Co-Authored-By: GPT-6 <codex@openai.com>
1 parent 89ac4c2 commit d2ee1da

15 files changed

Lines changed: 100 additions & 94 deletions

File tree

‎dev-packages/browser-integration-tests/suites/public-api/startSpan/streamed/test.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { expect } from '@playwright/test';
22
import {
33
SDK_VERSION,
4-
SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,
54
SEMANTIC_ATTRIBUTE_SENTRY_OP,
65
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
76
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8-
SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,
97
} from '@sentry/core';
108
import { sentryTest } from '../../../../utils/fixtures';
119
import { shouldSkipTracingTest } from '../../../../utils/helpers';
@@ -19,6 +17,8 @@ import {
1917
SENTRY_TRACE_LIFECYCLE,
2018
USER_AGENT_ORIGINAL,
2119
SENTRY_STATUS_MESSAGE,
20+
SENTRY_ENVIRONMENT,
21+
SENTRY_SDK_INTEGRATIONS,
2222
} from '@sentry/conventions/attributes';
2323

2424
sentryTest(
@@ -101,7 +101,7 @@ sentryTest(
101101
type: 'string',
102102
value: 'test-span',
103103
},
104-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
104+
[SENTRY_ENVIRONMENT]: {
105105
type: 'string',
106106
value: 'production',
107107
},
@@ -146,7 +146,7 @@ sentryTest(
146146
type: 'string',
147147
value: 'test-span',
148148
},
149-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
149+
[SENTRY_ENVIRONMENT]: {
150150
type: 'string',
151151
value: 'production',
152152
},
@@ -191,7 +191,7 @@ sentryTest(
191191
type: 'string',
192192
value: 'test-span',
193193
},
194-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
194+
[SENTRY_ENVIRONMENT]: {
195195
type: 'string',
196196
value: 'production',
197197
},
@@ -260,7 +260,7 @@ sentryTest(
260260
type: 'string',
261261
value: SDK_VERSION,
262262
},
263-
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]: {
263+
[SENTRY_SDK_INTEGRATIONS]: {
264264
type: 'array',
265265
value: expect.arrayContaining(['SpanStreaming']),
266266
},
@@ -276,7 +276,7 @@ sentryTest(
276276
type: 'string',
277277
value: 'custom',
278278
},
279-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
279+
[SENTRY_ENVIRONMENT]: {
280280
type: 'string',
281281
value: 'production',
282282
},

‎dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/navigation-streamed/test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { expect } from '@playwright/test';
22
import {
33
SDK_VERSION,
4-
SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,
54
SEMANTIC_ATTRIBUTE_SENTRY_OP,
65
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
76
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8-
SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,
97
} from '@sentry/core';
108
import {
119
SENTRY_SEGMENT_NAME_SOURCE,
1210
SENTRY_TRACE_LIFECYCLE,
1311
URL_FULL,
1412
URL_PATH,
1513
USER_AGENT_ORIGINAL,
14+
SENTRY_ENVIRONMENT,
15+
SENTRY_SDK_INTEGRATIONS,
1616
} from '@sentry/conventions/attributes';
1717
import { sentryTest } from '../../../../utils/fixtures';
1818
import { shouldSkipTracingTest } from '../../../../utils/helpers';
@@ -148,7 +148,7 @@ sentryTest('starts a streamed navigation span on page navigation', async ({ brow
148148
type: 'string',
149149
value: SDK_VERSION,
150150
},
151-
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]: {
151+
[SENTRY_SDK_INTEGRATIONS]: {
152152
type: 'array',
153153
value: expect.arrayContaining(['BrowserTracing', 'SpanStreaming']),
154154
},
@@ -164,7 +164,7 @@ sentryTest('starts a streamed navigation span on page navigation', async ({ brow
164164
type: 'string',
165165
value: 'url',
166166
},
167-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
167+
[SENTRY_ENVIRONMENT]: {
168168
type: 'string',
169169
value: 'production',
170170
},

‎dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/pageload-streamed/test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { expect } from '@playwright/test';
22
import {
33
SDK_VERSION,
4-
SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,
54
SEMANTIC_ATTRIBUTE_SENTRY_OP,
65
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
76
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8-
SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,
97
} from '@sentry/core';
108
import {
119
BROWSER_NAVIGATION_TYPE,
@@ -18,6 +16,8 @@ import {
1816
URL_FULL,
1917
URL_PATH,
2018
USER_AGENT_ORIGINAL,
19+
SENTRY_ENVIRONMENT,
20+
SENTRY_SDK_INTEGRATIONS,
2121
} from '@sentry/conventions/attributes';
2222
import { sentryTest } from '../../../../utils/fixtures';
2323
import { shouldSkipTracingTest } from '../../../../utils/helpers';
@@ -156,7 +156,7 @@ sentryTest(
156156
type: 'string',
157157
value: SDK_VERSION,
158158
},
159-
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]: {
159+
[SENTRY_SDK_INTEGRATIONS]: {
160160
type: 'array',
161161
value: expect.arrayContaining(['BrowserTracing', 'SpanStreaming']),
162162
},
@@ -172,7 +172,7 @@ sentryTest(
172172
type: 'string',
173173
value: 'url',
174174
},
175-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
175+
[SENTRY_ENVIRONMENT]: {
176176
type: 'string',
177177
value: 'production',
178178
},

‎dev-packages/browser-integration-tests/suites/tracing/interactions/spans/test.ts‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import {
3-
SDK_VERSION,
4-
SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,
5-
SEMANTIC_ATTRIBUTE_SENTRY_OP,
6-
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
7-
SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,
8-
} from '@sentry/core';
2+
import { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
93
import {
104
SENTRY_IDLE_SPAN_FINISH_REASON,
115
SENTRY_SEGMENT_ID,
@@ -16,6 +10,8 @@ import {
1610
SENTRY_TRACE_LIFECYCLE,
1711
USER_AGENT_ORIGINAL,
1812
URL_PATH,
13+
SENTRY_ENVIRONMENT,
14+
SENTRY_SDK_INTEGRATIONS,
1915
} from '@sentry/conventions/attributes';
2016
import { sentryTest } from '../../../../utils/fixtures';
2117
import { shouldSkipTracingTest } from '../../../../utils/helpers';
@@ -96,7 +92,7 @@ sentryTest('captures streamed interaction span tree. @firefox', async ({ browser
9692
type: 'string',
9793
value: SDK_VERSION,
9894
},
99-
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]: {
95+
[SENTRY_SDK_INTEGRATIONS]: {
10096
type: 'array',
10197
value: expect.arrayContaining(['BrowserTracing', 'SpanStreaming']),
10298
},
@@ -112,7 +108,7 @@ sentryTest('captures streamed interaction span tree. @firefox', async ({ browser
112108
type: 'string',
113109
value: 'custom',
114110
},
115-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
111+
[SENTRY_ENVIRONMENT]: {
116112
type: 'string',
117113
value: 'production',
118114
},
@@ -165,7 +161,7 @@ sentryTest('captures streamed interaction span tree. @firefox', async ({ browser
165161
type: 'string',
166162
value: 'Click',
167163
},
168-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: {
164+
[SENTRY_ENVIRONMENT]: {
169165
type: 'string',
170166
value: 'production',
171167
},

‎dev-packages/cloudflare-integration-tests/suites/public-api/startSpan/test.ts‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import {
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';
107
import {
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';
1818
import { expect, it } from 'vitest';
1919
import { 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',

‎dev-packages/cloudflare-integration-tests/suites/tracing/anthropic-ai/test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import {
1717
SENTRY_SEGMENT_ID,
1818
SENTRY_SEGMENT_NAME,
1919
SENTRY_TRACE_LIFECYCLE,
20+
SENTRY_ENVIRONMENT,
2021
} from '@sentry/conventions/attributes';
21-
import { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT } from '@sentry/core';
22+
import { SDK_VERSION } from '@sentry/core';
2223
import { createRunner } from '../../../runner';
2324
import { getSpanOp, getSpansFromEnvelope } from '../../../spanUtils';
2425

@@ -71,7 +72,7 @@ it('traces a basic message creation request with the anthropic SDK', async ({ si
7172
[SENTRY_SEGMENT_ID]: { value: segmentSpan!.span_id, type: 'string' },
7273
[SENTRY_SDK_NAME]: { value: 'sentry.javascript.cloudflare', type: 'string' },
7374
[SENTRY_SDK_VERSION]: { value: SDK_VERSION, type: 'string' },
74-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
75+
[SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
7576
},
7677
});
7778
})

‎dev-packages/cloudflare-integration-tests/suites/tracing/d1/test.ts‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
import { expect, it } from 'vitest';
22
import type { Envelope, SerializedStreamedSpan } from '@sentry/core';
3-
import {
4-
SDK_VERSION,
5-
SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,
6-
SEMANTIC_ATTRIBUTE_SENTRY_OP,
7-
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
8-
} from '@sentry/core';
3+
import { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
94
import {
105
SENTRY_SDK_NAME,
116
SENTRY_SDK_VERSION,
127
SENTRY_SEGMENT_ID,
138
SENTRY_SEGMENT_NAME,
149
SENTRY_TRACE_LIFECYCLE,
10+
SENTRY_ENVIRONMENT,
1511
} from '@sentry/conventions/attributes';
1612
import { createRunner } from '../../../runner';
1713
import { getSpanOp, getSpansFromEnvelope } from '../../../spanUtils';
@@ -38,7 +34,7 @@ function commonAttributes(segmentSpan: SerializedStreamedSpan): SerializedStream
3834
[SENTRY_SDK_VERSION]: { type: 'string', value: SDK_VERSION },
3935
[SENTRY_SEGMENT_ID]: { type: 'string', value: segmentSpan.span_id },
4036
[SENTRY_SEGMENT_NAME]: { type: 'string', value: segmentSpan.name },
41-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: { type: 'string', value: 'production' },
37+
[SENTRY_ENVIRONMENT]: { type: 'string', value: 'production' },
4238
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: { type: 'string', value: 'db.query' },
4339
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: { type: 'string', value: 'auto.db.cloudflare.d1' },
4440
'db.system.name': { type: 'string', value: 'cloudflare-d1' },

‎dev-packages/cloudflare-integration-tests/suites/tracing/google-genai/test.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ import {
2424
SENTRY_SEGMENT_ID,
2525
SENTRY_SEGMENT_NAME,
2626
SENTRY_TRACE_LIFECYCLE,
27+
SENTRY_ENVIRONMENT,
2728
} from '@sentry/conventions/attributes';
28-
import { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT } from '@sentry/core';
29+
import { SDK_VERSION } from '@sentry/core';
2930
import { createRunner } from '../../../runner';
3031
import { getSpanOp, getSpansFromEnvelope } from '../../../spanUtils';
3132

@@ -98,7 +99,7 @@ it('traces Google GenAI chat, generateContent, and embedContent calls', async ({
9899
[SENTRY_SEGMENT_ID]: { value: segmentSpan!.span_id, type: 'string' },
99100
[SENTRY_SDK_NAME]: { value: 'sentry.javascript.cloudflare', type: 'string' },
100101
[SENTRY_SDK_VERSION]: { value: SDK_VERSION, type: 'string' },
101-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
102+
[SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
102103
},
103104
});
104105

@@ -138,7 +139,7 @@ it('traces Google GenAI chat, generateContent, and embedContent calls', async ({
138139
[SENTRY_SEGMENT_ID]: { value: segmentSpan!.span_id, type: 'string' },
139140
[SENTRY_SDK_NAME]: { value: 'sentry.javascript.cloudflare', type: 'string' },
140141
[SENTRY_SDK_VERSION]: { value: SDK_VERSION, type: 'string' },
141-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
142+
[SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
142143
},
143144
});
144145

@@ -164,7 +165,7 @@ it('traces Google GenAI chat, generateContent, and embedContent calls', async ({
164165
[SENTRY_SEGMENT_ID]: { value: segmentSpan!.span_id, type: 'string' },
165166
[SENTRY_SDK_NAME]: { value: 'sentry.javascript.cloudflare', type: 'string' },
166167
[SENTRY_SDK_VERSION]: { value: SDK_VERSION, type: 'string' },
167-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
168+
[SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
168169
},
169170
});
170171
})

‎dev-packages/cloudflare-integration-tests/suites/tracing/langchain/test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import {
1616
SENTRY_SEGMENT_ID,
1717
SENTRY_SEGMENT_NAME,
1818
SENTRY_TRACE_LIFECYCLE,
19+
SENTRY_ENVIRONMENT,
1920
} from '@sentry/conventions/attributes';
20-
import { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT } from '@sentry/core';
21+
import { SDK_VERSION } from '@sentry/core';
2122
import { GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE } from '../../../../../packages/server-utils/src/ai/core/gen-ai-attributes';
2223
import { createRunner } from '../../../runner';
2324
import { getSpanOp, getSpansFromEnvelope } from '../../../spanUtils';
@@ -67,7 +68,7 @@ it('traces a LangChain chat model invocation', async ({ signal }) => {
6768
[SENTRY_SEGMENT_ID]: { value: segmentSpan!.span_id, type: 'string' },
6869
[SENTRY_SDK_NAME]: { value: 'sentry.javascript.cloudflare', type: 'string' },
6970
[SENTRY_SDK_VERSION]: { value: SDK_VERSION, type: 'string' },
70-
[SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
71+
[SENTRY_ENVIRONMENT]: { value: 'production', type: 'string' },
7172
},
7273
});
7374
})

0 commit comments

Comments
 (0)