Configuration Overview
Untrace can be configured through multiple methods:- Configuration files (
untrace.config.yaml) - Environment variables
- SDK initialization parameters
- Dashboard UI
Configuration File
Theuntrace.config.yaml file provides comprehensive configuration:
SDK Configuration
JavaScript/TypeScript
Python
Environment Variables
All configuration can be set via environment variables:Integration Configuration
LangSmith
Langfuse
Custom Webhook
Advanced Configuration
Multi-Environment Setup
Provider-Specific Settings
Performance Tuning
Security Configuration
Configuration Precedence
Configuration is applied in this order (later overrides earlier):- Default values
- Configuration file (
untrace.config.yaml) - Environment variables
- SDK initialization parameters
- Runtime API calls
Validation
Untrace validates configuration on startup:- Missing required fields (apiKey)
- Invalid routing rules
- Unreachable integration endpoints
- Invalid sampling rates (must be 0.0-1.0)
Best Practices
-
Use Environment Variables for Secrets
-
Separate Configs by Environment
-
Version Your Configuration
-
Document Custom Settings
-
Monitor Configuration Changes