Quickstart
Quickstart
Section titled “Quickstart”Get up and running with Kopai in under 5 minutes.
Prerequisites
Section titled “Prerequisites”- A Kopai account (sign up here)
- Node.js 18+ (or Python 3.8+ or Go 1.21+)
Step 1: Get Your API Token
Section titled “Step 1: Get Your API Token”- Go to Settings → Access Tokens in your dashboard
- Click Generate Token
- Copy the token (it won’t be shown again)
Step 2: Install the OpenTelemetry SDK
Section titled “Step 2: Install the OpenTelemetry SDK”npm install @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/exporter-trace-otlp-httpStep 3: Configure the Exporter
Section titled “Step 3: Configure the Exporter”Set your Kopai endpoint and token:
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.kopai.app"export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer YOUR_TOKEN"Step 4: Instrument Your Application
Section titled “Step 4: Instrument Your Application”See the SDK guides for detailed instrumentation examples.
Next Steps
Section titled “Next Steps”- Authentication - Learn about token management
- Sending Traces - Detailed tracing guide
- Sending Logs - Log aggregation setup