Skip to content

Commit

Permalink
chore: use telemetry 0.1.0, php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
basert committed Nov 13, 2024
1 parent 6c1f200 commit 97ac992
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'

- name: Setup Docker
run: docker compose up -d --build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \
--no-plugins --no-scripts --prefer-dist \
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`

FROM php:8.0-cli-alpine as final
FROM php:8.1-cli-alpine as final
LABEL maintainer="[email protected]"

ENV DEBIAN_FRONTEND=noninteractive \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ $app->run($request, $response);

## System Requirements

Utopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.
Utopia Framework requires PHP 8.1 or later. We recommend using the latest PHP version whenever possible.

## More from Utopia

Expand Down
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@
"bench": "vendor/bin/phpbench run --report=benchmark"
},
"require": {
"php": ">=8.0",
"php": ">=8.1",
"utopia-php/compression": "0.1.*",
"utopia-php/telemetry": "dev-initial-commit"
"utopia-php/telemetry": "0.1.*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/utopia-php/telemetry"
}
],
"require-dev": {
"phpunit/phpunit": "^9.5.25",
"laravel/pint": "^1.2",
Expand Down
38 changes: 10 additions & 28 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function setCompressionSupported(mixed $compressionSupported)
* @param Telemetry $telemetry
* @return void
*/
public function setTelemetry(Telemetry $telemetry)
public function setTelemetry(Telemetry $telemetry): void
{
// https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration
$this->requestDuration = $telemetry->createHistogram(
Expand Down

0 comments on commit 97ac992

Please sign in to comment.