From ed5278c41df0decb02185285feb86ba10988371e Mon Sep 17 00:00:00 2001 From: takanori-terai <123897708+takanori-terai@users.noreply.github.com> Date: Tue, 6 Jan 2026 13:45:29 +0900 Subject: [PATCH] Fix: Update OTLP exporter protocol conditions (#3070) --- python/packages/core/agent_framework/observability.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/core/agent_framework/observability.py b/python/packages/core/agent_framework/observability.py index 9dc6e4d4a9..26c261038b 100644 --- a/python/packages/core/agent_framework/observability.py +++ b/python/packages/core/agent_framework/observability.py @@ -321,7 +321,7 @@ def _create_otlp_exporters( if not actual_logs_endpoint and not actual_traces_endpoint and not actual_metrics_endpoint: return exporters - if protocol in ("grpc", "http/protobuf"): + if protocol == "grpc": # Import all gRPC exporters try: from opentelemetry.exporter.otlp.proto.grpc._log_exporter import OTLPLogExporter as GRPCLogExporter @@ -357,7 +357,7 @@ def _create_otlp_exporters( ) ) - elif protocol == "http": + elif protocol in ("http/protobuf", "http"): # Import all HTTP exporters try: from opentelemetry.exporter.otlp.proto.http._log_exporter import OTLPLogExporter as HTTPLogExporter