Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: sentry config float type err (#5416)

takatosta51ec2094f8e
diff --git a/api/configs/extra/sentry_configs.py b/api/configs/extra/sentry_configs.py
index 7f19b347d4a..33924199a30 100644
--- a/api/configs/extra/sentry_configs.py
+++ b/api/configs/extra/sentry_configs.py
@@ -1,6 +1,6 @@
from typing import Optional
-from pydantic import BaseModel, Field, PositiveFloat
+from pydantic import BaseModel, Field, NonNegativeFloat
class SentryConfigs(BaseModel):
@@ -12,12 +12,12 @@ class SentryConfigs(BaseModel):
default=None,
)
- SENTRY_TRACES_SAMPLE_RATE: PositiveFloat = Field(
+ SENTRY_TRACES_SAMPLE_RATE: NonNegativeFloat = Field(
description='Sentry trace sample rate',
default=1.0,
)
- SENTRY_PROFILES_SAMPLE_RATE: PositiveFloat = Field(
+ SENTRY_PROFILES_SAMPLE_RATE: NonNegativeFloat = Field(
description='Sentry profiles sample rate',
default=1.0,
)