File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/astro/src/server Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 66 getIsolationScope ,
77 getRootSpan ,
88 objectify ,
9+ SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD ,
910 spanToJSON ,
1011 stripUrlQueryAndFragment ,
1112 winterCGRequestToRequestData ,
@@ -166,7 +167,6 @@ async function enhanceHttpServerSpan(
166167 } finally {
167168 await flushIfServerless ( ) ;
168169 }
169-
170170}
171171
172172async function instrumentRequestStartHttpServerSpan (
@@ -216,6 +216,8 @@ async function instrumentRequestStartHttpServerSpan(
216216 const attributes : SpanAttributes = {
217217 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.http.astro' ,
218218 [ 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
219221 method,
220222 url : stripUrlQueryAndFragment ( ctx . url . href ) ,
221223 } ;
You can’t perform that action at this time.
0 commit comments