Skip to main content

Required Options

Optional Options

Retry Configuration

The SDK automatically retries failed requests with exponential backoff.

Log Level Filtering

Use min_level to filter out lower-priority logs:

Setting User/Session at Runtime

You can update the user and session IDs after initialization:

Validation Limits

The SDK validates fields before sending. Logs that exceed these limits will return a TimberlogsError::Validation error.

Environment Variables

We recommend storing sensitive values in environment variables: