Cookbook
Instrumentation
Best practices for instrumenting your applications
Instrumentation Guide
Learn how to properly instrument your applications for effective observability with Parseable.
Structured Logging
Always use structured logging formats like JSON:
{
"timestamp": "2024-01-15T10:30:00Z",
"level": "info",
"message": "User logged in",
"user_id": "user-123",
"ip_address": "192.168.1.1",
"duration_ms": 45
}Key Fields to Include
- timestamp - When the event occurred
- level - Log level (debug, info, warn, error)
- message - Human-readable description
- correlation_id - For tracing requests across services
- service - Name of the service generating the log
Best Practices
- Use consistent field names across services
- Include context with every log entry
- Avoid logging sensitive data
- Use appropriate log levels
- Include timing information for performance analysis
Integration Examples
See the Logging Agents and OpenTelemetry sections for integration guides.
Was this page helpful?