mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
24 lines
525 B
Python
24 lines
525 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field, NonNegativeFloat
|
|
|
|
|
|
class SentryConfig(BaseModel):
|
|
"""
|
|
Sentry configs
|
|
"""
|
|
SENTRY_DSN: Optional[str] = Field(
|
|
description='Sentry DSN',
|
|
default=None,
|
|
)
|
|
|
|
SENTRY_TRACES_SAMPLE_RATE: NonNegativeFloat = Field(
|
|
description='Sentry trace sample rate',
|
|
default=1.0,
|
|
)
|
|
|
|
SENTRY_PROFILES_SAMPLE_RATE: NonNegativeFloat = Field(
|
|
description='Sentry profiles sample rate',
|
|
default=1.0,
|
|
)
|