mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fix: Update OTLP exporter protocol conditions (#3070)
This commit is contained in:
committed by
GitHub
Unverified
parent
928c9d54ad
commit
ed5278c41d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user