Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,17 @@ docker compose --env-file .env.development -f docker-compose.dev.yml up frontend
## Adding New Pages

To add a new page, create a new directory in src/app with a page.tsx file, following the Next.js App Router conventions.

## Observability Configuration

The frontend exports Web Vitals to an OpenTelemetry collector. Configure the target collector via environment variables before running the app:

| Variable | Description |
| --- | --- |
| `OTEL_COLLECTOR_HOST` | Hostname or IP address of the OTLP collector. |
| `OTEL_COLLECTOR_PORT` | (Optional) Port where the collector listens (defaults to `4318` when omitted). |
| `OTEL_COLLECTOR_PROTOCOL` | (Optional) Protocol to use (`http` by default). |
| `OTEL_COLLECTOR_PATH` | (Optional) OTLP path, defaults to `/v1/traces`. |
| `OTEL_COLLECTOR_URL` / `OTEL_EXPORTER_OTLP_ENDPOINT` | (Optional) Full collector URL that overrides the host/port variables. |

You can also set `OTEL_SERVICE_NAME` to override the service name reported by the exporter.
273 changes: 271 additions & 2 deletions frontend/package-lock.json

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

5 changes: 4 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"framer-motion": "^11.5.4",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.52.1",
"next": "^14.2.28",
"react": "^18",
"react-dom": "^18",
"react-icons": "^5.3.0",
"zustand": "^4.5.0",
"three": "^0.171.0",
"@react-three/fiber": "^8.17.10",
"@react-three/drei": "^9.120.5"
"@react-three/drei": "^9.120.5",
"web-vitals": "^4.2.2"
},
"devDependencies": {
"@playwright/test": "^1.56.0",
Expand Down
Loading
Loading