Skip to content

Commit

Permalink
Cast status to string (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
LauJosefsen authored Feb 28, 2024
1 parent 87e14e3 commit 53270f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Watchers/ClientRequestWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function maybeRecordError(SpanInterface $span, Response $response): void

$span->setStatus(
StatusCode::STATUS_ERROR,
HttpResponse::$statusTexts[$response->status()] ?? $response->status()
HttpResponse::$statusTexts[$response->status()] ?? (string) $response->status()
);
}
}

0 comments on commit 53270f1

Please sign in to comment.