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
parent 085bd1aa93
commit 0b22e8b544
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"