|
6 | 6 | getIsolationScope,
|
7 | 7 | getRootSpan,
|
8 | 8 | objectify,
|
| 9 | + SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD, |
9 | 10 | spanToJSON,
|
10 | 11 | stripUrlQueryAndFragment,
|
11 | 12 | winterCGRequestToRequestData,
|
@@ -166,7 +167,6 @@ async function enhanceHttpServerSpan(
|
166 | 167 | } finally {
|
167 | 168 | await flushIfServerless();
|
168 | 169 | }
|
169 | | - |
170 | 170 | }
|
171 | 171 |
|
172 | 172 | async function instrumentRequestStartHttpServerSpan(
|
@@ -216,6 +216,8 @@ async function instrumentRequestStartHttpServerSpan(
|
216 | 216 | const attributes: SpanAttributes = {
|
217 | 217 | [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.astro',
|
218 | 218 | [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: source,
|
| 219 | + [SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]: method, |
| 220 | + // This is here for backwards compatibility, we used to set this here before |
219 | 221 | method,
|
220 | 222 | url: stripUrlQueryAndFragment(ctx.url.href),
|
221 | 223 | };
|
|
0 commit comments