bun install
The application uses environment variables for configuration. These are stored in a .env
file:
PORT
: The port number for the Express server (default: 3000)NODE_ENV
: The environment (development, production, etc.)SERVICE_NAME
: The name of the service for OpenTelemetryOTEL_EXPORTER_OTLP_ENDPOINT
: The endpoint for the OpenTelemetry collector
Start the server:
bun run --preload './otel.ts' index.ts
The server will be available at http://localhost:3000
GET /
: Returns a hello world messageGET /health
: Returns a health check status