Skip to main content

Overview

Proper logging and monitoring are essential for operating reliable voice agents in production. Conversimple provides built-in logging capabilities and integrates with popular monitoring tools.

Logging Basics

Configure Logging Level

Set the logging level for your agent:

Log Levels

Basic Logging Example

Structured Logging

JSON Logging

Use structured logs for better searchability:

Contextual Logging

Add context to your logs:

Metrics and Monitoring

Track Key Metrics

Monitor important agent metrics:

Periodic Metrics Reporting

Report metrics at regular intervals:

Integration with Monitoring Services

Datadog Integration

Prometheus Integration

CloudWatch Integration

Log Aggregation

ELK Stack (Elasticsearch, Logstash, Kibana)

Logtail/Better Stack

Best Practices

1. Log at Appropriate Levels

2. Don’t Log Sensitive Information

3. Use Correlation IDs

4. Monitor Key Performance Indicators

Track these essential metrics:
  • Conversation Count: Active, started, ended
  • Tool Call Rate: Calls per minute/hour
  • Tool Duration: Average and P95/P99 latency
  • Error Rate: Errors per minute, by type
  • Success Rate: Successful tool executions vs failures

5. Set Up Alerts

Alert on critical conditions:

Next Steps

Debugging

Advanced debugging techniques

Best Practices

Production best practices