Swisper Studio - Quick Start Configuration Guide¶
This guide walks you through setting up a new project in Swisper Studio and connecting Swisper to send traces.
Step 1: Create a Project in Swisper Studio¶
- Open Swisper Studio: http://localhost:3000
- Log in with your credentials
- Click "New Project" or navigate to Projects
- Fill in the project details:
- Name: Your project name (e.g., "Swisper Production")
- Description: Optional description
- GitHub Repo URL: (Optional) Link to your repository
- GitHub Token: (Optional) For GitHub integration
- Click "Create"
- Copy the Project ID from the project details page (you'll need this!)
Step 2: Configure Swisper to Send Traces¶
Add these environment variables to your Swisper .env file:
# Enable Swisper Studio integration
SWISPER_STUDIO_ENABLED=true
# Redis URL - points to Swisper Studio's Redis instance
# For local Docker setup (both running on same machine):
SWISPER_STUDIO_REDIS_URL=redis://172.17.0.1:6380
# Your Project ID from Step 1 (copy from Swisper Studio UI)
SWISPER_STUDIO_PROJECT_ID=<paste-your-project-id-here>
# Stream name (must match Swisper Studio's consumer)
SWISPER_STUDIO_STREAM_NAME=observability:events
# Optional: Enable reasoning capture
SWISPER_STUDIO_CAPTURE_REASONING=true
SWISPER_STUDIO_REASONING_MAX_LENGTH=50000
Step 3: Restart Swisper¶
Important: You must recreate the container (not just restart) for .env changes to take effect:
Step 4: Verify the Connection¶
- Check Swisper logs for successful initialization:
You should see:
✅ SwisperStudio SDK initialized successfully
✅ SwisperStudio observability initialized (Redis Streams)
Project ID: <your-project-id>
-
Send a test message in Swisper
-
Check Swisper Studio UI - traces should appear within seconds!
Redis URL Reference¶
| Swisper Location | Redis URL |
|---|---|
| Same machine (Docker) | redis://172.17.0.1:6380 |
| Same Docker network | redis://swisper_studio_redis:6379 |
| Remote server | redis://<server-ip>:6380 |
Note:
172.17.0.1is the Docker bridge gateway IP, allowing containers in different Docker networks to communicate via the host.
Troubleshooting¶
No traces appearing?¶
-
Check Project ID matches: The
SWISPER_STUDIO_PROJECT_IDin Swisper must match the project you're viewing in the UI. -
Verify Redis connectivity:
-
Check container has correct env vars:
-
Ensure you recreated (not just restarted) the container after changing
.env.
"Unknown event type: heartbeat" in logs?¶
This is normal - heartbeat events are used for health monitoring.
Environment-Specific Configuration¶
For multiple environments (dev, staging, production), create separate projects in Swisper Studio and configure each environment with its own SWISPER_STUDIO_PROJECT_ID:
| Environment | Project Name | Project ID |
|---|---|---|
| Development | Swisper Dev | abc123... |
| Staging | Swisper Staging | def456... |
| Production | Swisper Production | ghi789... |
This allows you to view traces from each environment separately in Swisper Studio.