Prerequisites
- Node.js or Python backend service (using Python 3.12+) where the SDK will be installed
- All packages used are present in our list of instrumentations
- Dev/staging environment for initial rollout (recommended)
Setup
1. Install the Tusk CLI
- Linux/macOS
- Windows
2. Create the Tusk Drift config
Runtusk init in CLI to create your .tusk/config.yaml in the root of your service:
“Service” here usually refers to where your
package.json lives..tusk directory and config file if you’d prefer. See the configuration doc for details.
3. Install and initialize SDK
Node.js
- npm
- yarn
Python
- CommonJS Applications
- If you use TypeScript, your application is likely compiled to CommonJS before running, follow these CommonJS instructions.
- ESM Applications
- If your application’s compiled code uses
importor you do not compile your code, follow these ESM instructions.
- If your application’s compiled code uses
- Next.js Applications
- Python Applications