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.

minor bug fix: wrong default metrics endpoint (#22535)

NeatGuyCoding853c97a910e6
diff --git a/api/extensions/ext_otel.py b/api/extensions/ext_otel.py
index 0771104fb15..b027a165f9d 100644
--- a/api/extensions/ext_otel.py
+++ b/api/extensions/ext_otel.py
@@ -205,7 +205,7 @@ def init_app(app: DifyApp):
metric_endpoint = dify_config.OTLP_METRIC_ENDPOINT
if not metric_endpoint:
- metric_endpoint = dify_config.OTLP_BASE_ENDPOINT + "/v1/traces"
+ metric_endpoint = dify_config.OTLP_BASE_ENDPOINT + "/v1/metrics"
metric_exporter = HTTPMetricExporter(
endpoint=metric_endpoint,
headers=headers,