1717from datu .integrations .config import IntegrationConfigs
1818from datu .mcp .config import MCPConfig
1919from datu .services .config import SchemaRAGConfig
20+ from datu .telemetry .config import TelemetryConfig
2021
2122
2223class Environment (Enum ):
@@ -56,6 +57,13 @@ class DatuConfig(BaseSettings):
5657 schema_sample_limit (int): The maximum number of rows to sample from the schema.
5758 schema_categorical_threshold (int): The threshold for categorical columns in the schema.
5859 enable_schema_rag (bool): Enable RAG for schema extraction.
60+ enable_anonymized_telemetry (bool): Enable anonymized telemetry. Default is True.
61+ app_environment (str): The application environment (e.g., "dev", "test", "prod"). Default is "dev".
62+ telemetry (TelemetryConfig | None): Configuration settings for telemetry.
63+ enable_mcp (bool): Whether to enable MCP integration. Default is False.
64+ mcp (MCPConfig | None): Configuration settings for MCP integration.
65+ enable_schema_rag (bool): Enable RAG for schema extraction.
66+ schema_rag (SchemaRAGConfig | None): Configuration settings for schema RAG.
5967
6068 Attributes:
6169 host (str): The host address for the application.
@@ -77,7 +85,8 @@ class DatuConfig(BaseSettings):
7785 mcp (MCPConfig | None): Configuration settings for MCP integration.
7886 enable_schema_rag (bool): Enable RAG for schema extraction.
7987 schema_rag (SchemaRAGConfig | None): Configuration settings for schema RAG.
80-
88+ enable_anonymized_telemetry (bool): Enable anonymized telemetry.
89+ telemetry (TelemetryConfig | None): Configuration settings for telemetry.
8190
8291 """
8392
@@ -110,7 +119,8 @@ class DatuConfig(BaseSettings):
110119 description = "Configuration settings for schema RAG (Retrieval-Augmented Generation)." ,
111120 )
112121 enable_anonymization : bool = False
113-
122+ enable_anonymized_telemetry : bool = True
123+ telemetry : TelemetryConfig | None = Field (default_factory = TelemetryConfig )
114124 model_config = SettingsConfigDict (
115125 env_prefix = "datu_" ,
116126 env_nested_delimiter = "__" ,
0 commit comments