|
1 | | -import { SENTRY_OP } from '@sentry/conventions/attributes'; |
| 1 | +import { SENTRY_OP, SENTRY_ORIGIN } from '@sentry/conventions/attributes'; |
2 | 2 | import type { Span, SpanAttributes } from '@sentry/core'; |
3 | | -import { |
4 | | - getClient, |
5 | | - getMainCarrier, |
6 | | - SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, |
7 | | - SentrySpan, |
8 | | - setCurrentClient, |
9 | | - spanToJSON, |
10 | | -} from '@sentry/core'; |
| 3 | +import { getClient, getMainCarrier, SentrySpan, setCurrentClient, spanToJSON } from '@sentry/core'; |
11 | 4 | import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'; |
12 | 5 | import { |
13 | 6 | _addNavigationSpans, |
@@ -247,7 +240,7 @@ describe('_addResourceSpans', () => { |
247 | 240 | end_timestamp: timeOrigin + startTime + duration, |
248 | 241 | attributes: { |
249 | 242 | [SENTRY_OP]: 'resource.css', |
250 | | - [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
| 243 | + [SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
251 | 244 | ['http.response.body.decoded_size']: entry.decodedBodySize, |
252 | 245 | ['http.response.body.size']: entry.encodedBodySize, |
253 | 246 | ['http.response.size']: entry.transferSize, |
@@ -430,7 +423,7 @@ describe('_addResourceSpans', () => { |
430 | 423 | expect.objectContaining({ |
431 | 424 | attributes: expect.objectContaining({ |
432 | 425 | [SENTRY_OP]: 'resource.css', |
433 | | - [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
| 426 | + [SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
434 | 427 | ['http.response.body.decoded_size']: entry.decodedBodySize, |
435 | 428 | ['http.response.body.size']: entry.encodedBodySize, |
436 | 429 | ['http.response.size']: entry.transferSize, |
@@ -469,7 +462,7 @@ describe('_addResourceSpans', () => { |
469 | 462 | expect.objectContaining({ |
470 | 463 | attributes: expect.objectContaining({ |
471 | 464 | [SENTRY_OP]: 'resource.css', |
472 | | - [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
| 465 | + [SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
473 | 466 | 'server.address': 'example.com', |
474 | 467 | 'url.domain': 'example.com', |
475 | 468 | 'http.request.same_origin': true, |
@@ -521,7 +514,7 @@ describe('_addResourceSpans', () => { |
521 | 514 | expect.objectContaining({ |
522 | 515 | attributes: { |
523 | 516 | [SENTRY_OP]: 'resource.css', |
524 | | - [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
| 517 | + [SENTRY_ORIGIN]: 'auto.resource.browser.metrics', |
525 | 518 | 'server.address': 'example.com', |
526 | 519 | 'url.domain': 'example.com', |
527 | 520 | 'http.request.same_origin': true, |
|
0 commit comments