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

This commit is contained in:
NeatGuyCoding
2025-07-17 13:49:41 +08:00
committed by GitHub
parent 162a938bfd
commit 7015fdacc2
+1 -1
View File
@@ -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,