Skip to main content

Troubleshooting Tools

The LangWatch TypeScript SDK has console tracing, a custom logger hook, and error-handling options for troubleshooting an integration.

Console Tracing and Logging

Enable console output and detailed logging for development and troubleshooting.

Custom Logger

Create a custom logger for better integration with your existing logging system:

Error Handling

Configure error handling behavior for different environments:

Common Issues

Spans Not Appearing in Dashboard

  1. Check API Key: Ensure your LANGWATCH_API_KEY is correctly set
  2. Verify Endpoint: Confirm the LANGWATCH_ENDPOINT is accessible
  3. Check Network: Ensure your application can reach the LangWatch API
  4. Processor Type: Use 'simple' processor for immediate export during debugging

Performance Issues

  1. Batch Processing: Use 'batch' processor for production to reduce API calls
  2. Sampling: Implement sampling for high-volume applications
  3. Data Capture: Limit data capture to essential information

Integration Issues

  1. Framework Compatibility: Ensure you’re using the correct integration for your framework
  2. Version Compatibility: Check that your LangWatch SDK version is compatible with your framework
  3. Configuration: Verify that all required configuration options are set

Environment-Specific Debugging

Development Environment

Production Environment

Getting Help

If you’re still experiencing issues:
  1. Check Logs: Review console output and application logs
  2. Verify Configuration: Double-check all configuration options
  3. Test Connectivity: Ensure your application can reach LangWatch services
  4. Community Support: Visit our Discord community for help
  5. GitHub Issues: Report bugs and feature requests on GitHub
For more debugging techniques and advanced troubleshooting:
For complex debugging scenarios, combine console tracing with Manual Instrumentation techniques for detailed span analysis.
Last modified on August 22, 2026