chore: speed up api service startup time by defering the imports for trace services (#19504)

This commit is contained in:
Bowen Liang 2025-05-13 09:13:25 +08:00 • committed by GitHub
commit 0b22e8b544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 38 deletions

View file

@ -1,9 +1,9 @@
from enum import Enum
from enum import StrEnum
from pydantic import BaseModel, ValidationInfo, field_validator
class TracingProviderEnum(Enum):
class TracingProviderEnum(StrEnum):
LANGFUSE = "langfuse"
LANGSMITH = "langsmith"
OPIK = "opik"