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.

refactor: fix opentelemetry histogram type assignment error (#32490)

Stella Miyako57890eed250f
diff --git a/api/core/ops/tencent_trace/client.py b/api/core/ops/tencent_trace/client.py
index bf1ab5e7e6c..99ccf004009 100644
--- a/api/core/ops/tencent_trace/client.py
+++ b/api/core/ops/tencent_trace/client.py
@@ -18,8 +18,7 @@ except ImportError:
from importlib_metadata import version # type: ignore[import-not-found]
if TYPE_CHECKING:
- from opentelemetry.metrics import Meter
- from opentelemetry.metrics._internal.instrument import Histogram
+ from opentelemetry.metrics import Histogram, Meter
from opentelemetry.sdk.metrics.export import MetricReader
from opentelemetry import trace as trace_api