|
1 | | -import { SENTRY_SEGMENT_NAME_SOURCE, URL_FULL, URL_PATH } from '@sentry/conventions/attributes'; |
| 1 | +import { HTTP_REQUEST_METHOD, SENTRY_SEGMENT_NAME_SOURCE, URL_FULL, URL_PATH } from '@sentry/conventions/attributes'; |
2 | 2 | import type { Client, Span } from '@sentry/core'; |
3 | 3 |
|
4 | 4 | import * as SentryCore from '@sentry/core'; |
@@ -128,7 +128,7 @@ describe('sentryMiddleware', () => { |
128 | 128 | [URL_FULL]: 'https://mydomain.io/users/123/details', |
129 | 129 | [URL_PATH]: '/users/123/details', |
130 | 130 | [SENTRY_SEGMENT_NAME_SOURCE]: 'route', |
131 | | - [SentryCore.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]: 'GET', |
| 131 | + [HTTP_REQUEST_METHOD]: 'GET', |
132 | 132 | 'http.route': '/users/[id]/details', |
133 | 133 | }, |
134 | 134 | name: 'GET /users/[id]/details', |
@@ -230,7 +230,7 @@ describe('sentryMiddleware', () => { |
230 | 230 | [URL_FULL]: 'http://localhost:1234/a%xx', |
231 | 231 | [URL_PATH]: 'a%xx', |
232 | 232 | [SENTRY_SEGMENT_NAME_SOURCE]: 'url', |
233 | | - [SentryCore.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]: 'GET', |
| 233 | + [HTTP_REQUEST_METHOD]: 'GET', |
234 | 234 | }, |
235 | 235 | name: 'GET a%xx', |
236 | 236 | }, |
|
0 commit comments