mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
3cc6093e4b
Co-authored-by: -LAN- <laipz8200@outlook.com>
24 lines
517 B
Python
24 lines
517 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field, PositiveFloat
|
|
|
|
|
|
class SentryConfigs(BaseModel):
|
|
"""
|
|
Sentry configs
|
|
"""
|
|
SENTRY_DSN: Optional[str] = Field(
|
|
description='Sentry DSN',
|
|
default=None,
|
|
)
|
|
|
|
SENTRY_TRACES_SAMPLE_RATE: PositiveFloat = Field(
|
|
description='Sentry trace sample rate',
|
|
default=1.0,
|
|
)
|
|
|
|
SENTRY_PROFILES_SAMPLE_RATE: PositiveFloat = Field(
|
|
description='Sentry profiles sample rate',
|
|
default=1.0,
|
|
)
|