You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. )