您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

sentry_config.py 934B

1234567891011121314151617181920212223242526
  1. from pydantic import Field, NonNegativeFloat
  2. from pydantic_settings import BaseSettings
  3. class SentryConfig(BaseSettings):
  4. """
  5. Configuration settings for Sentry error tracking and performance monitoring
  6. """
  7. SENTRY_DSN: str | None = Field(
  8. description="Sentry Data Source Name (DSN)."
  9. " This is the unique identifier of your Sentry project, used to send events to the correct project.",
  10. default=None,
  11. )
  12. SENTRY_TRACES_SAMPLE_RATE: NonNegativeFloat = Field(
  13. description="Sample rate for Sentry performance monitoring traces."
  14. " Value between 0.0 and 1.0, where 1.0 means 100% of traces are sent to Sentry.",
  15. default=1.0,
  16. )
  17. SENTRY_PROFILES_SAMPLE_RATE: NonNegativeFloat = Field(
  18. description="Sample rate for Sentry profiling."
  19. " Value between 0.0 and 1.0, where 1.0 means 100% of profiles are sent to Sentry.",
  20. default=1.0,
  21. )