Principle:Truera Trulens Snowflake Connection Configuration
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Snowflake |
| Last Updated | 2026-02-14 08:00 GMT |
Overview
A database connector pattern that configures Snowflake as the persistent storage backend for TruLens traces, evaluations, and application metadata.
Description
Snowflake Connection Configuration provides enterprise-grade storage for TruLens observability data. Instead of local SQLite, traces and evaluation results are stored in Snowflake tables, enabling:
- Centralized storage: All team members share the same evaluation data
- Scalable querying: Snowflake's compute handles large-scale analytics
- Event table integration: OTEL spans exported to Snowflake account event tables
- Server-side evaluation: Feedback functions run inside Snowflake via stored procedures
Usage
Use this principle when deploying TruLens in production or team environments. Configure a SnowflakeConnector with account credentials and pass it to TruSession. Choose between password-based and Snowpark session-based authentication.
Theoretical Basis
This implements the Repository Pattern with Strategy Pattern for database backends. TruSession delegates all storage operations to a DBConnector interface, and SnowflakeConnector is one implementation of that interface.