Skip to content

Commit ed5278c

Browse files
Fix: Update OTLP exporter protocol conditions (#3070)
1 parent 928c9d5 commit ed5278c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/packages/core/agent_framework/observability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def _create_otlp_exporters(
321321
if not actual_logs_endpoint and not actual_traces_endpoint and not actual_metrics_endpoint:
322322
return exporters
323323

324-
if protocol in ("grpc", "http/protobuf"):
324+
if protocol == "grpc":
325325
# Import all gRPC exporters
326326
try:
327327
from opentelemetry.exporter.otlp.proto.grpc._log_exporter import OTLPLogExporter as GRPCLogExporter
@@ -357,7 +357,7 @@ def _create_otlp_exporters(
357357
)
358358
)
359359

360-
elif protocol == "http":
360+
elif protocol in ("http/protobuf", "http"):
361361
# Import all HTTP exporters
362362
try:
363363
from opentelemetry.exporter.otlp.proto.http._log_exporter import OTLPLogExporter as HTTPLogExporter

0 commit comments

Comments
 (0)