diff --git a/chromadb/config.py b/chromadb/config.py index 6731db255b7..0a3e4864673 100644 --- a/chromadb/config.py +++ b/chromadb/config.py @@ -179,7 +179,7 @@ def chroma_server_auth_credentials_file_non_empty_file_exists( chroma_otel_collection_endpoint: Optional[str] = "" chroma_otel_service_name: Optional[str] = "chromadb" chroma_otel_collection_headers: Dict[str, str] = {} - chroma_otel_granularity: Optional[str] = "none" + chroma_otel_granularity: Optional[str] = None allow_reset: bool = False diff --git a/chromadb/telemetry/opentelemetry/__init__.py b/chromadb/telemetry/opentelemetry/__init__.py index 0840871bcae..a713ed11ab4 100644 --- a/chromadb/telemetry/opentelemetry/__init__.py +++ b/chromadb/telemetry/opentelemetry/__init__.py @@ -49,7 +49,11 @@ def __init__(self, system: System): system.settings.chroma_otel_service_name, system.settings.chroma_otel_collection_endpoint, system.settings.chroma_otel_collection_headers, - OpenTelemetryGranularity(system.settings.chroma_otel_granularity), + OpenTelemetryGranularity( + system.settings.chroma_otel_granularity + if system.settings.chroma_otel_granularity + else "none" + ), )