Skip to content

apitoolkit/test-bun-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bun Express API with OpenTelemetry

Installation

bun install

Configuration

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 OpenTelemetry
  • OTEL_EXPORTER_OTLP_ENDPOINT: The endpoint for the OpenTelemetry collector

Running the Application

Start the server:

bun run --preload './otel.ts' index.ts

The server will be available at http://localhost:3000

API Endpoints

  • GET /: Returns a hello world message
  • GET /health: Returns a health check status

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published