Integrating TraceMole into your application consists of running our connect command and adding the telemetry wrappers to your database client init script.
1. Install the CLI and SDK Wrapper
Run the connect initializer script inside your project workspace folder:
# Connect your local project to TraceMole
npx tracemole@latest connect2. Configure Environment Variables
Add the API keys provided during setup to your project's .env configurations:
TRACEMOLE_API_KEY="tm_live_8f394f728c"
TRACEMOLE_ENV="production"Make sure to restart your local development server or redeploy your container after variables have been written.