Skip to content

Commit 5803567

Browse files
authored
Attach the response code as an data attribute (#984)
1 parent a50f2b0 commit 5803567

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Sentry/Laravel/Tracing/Middleware.php

+3
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ private function addBootDetailTimeSpans(Span $bootstrap): void
234234
private function hydrateResponseData(SymfonyResponse $response): void
235235
{
236236
$this->transaction->setHttpStatus($response->getStatusCode());
237+
$this->transaction->setData([
238+
'http.response.status_code' => $response->getStatusCode(),
239+
]);
237240
}
238241

239242
public function finishTransaction(): void

0 commit comments

Comments
 (0)