Skip to content

Commit b47ea5c

Browse files
committed
chore(telemetry): fix protocol in otel metrics (#15010)
Protocol is currently set as "http/protobuf", it should be sent as "http". This PR fixes this. This regression was found via system tests. We do not need additional testing. (cherry picked from commit 5fa0681)
1 parent 457abf7 commit b47ea5c

File tree

1 file changed

+1
-1
lines changed
  • ddtrace/internal/opentelemetry

1 file changed

+1
-1
lines changed

ddtrace/internal/opentelemetry/logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _import_exporter(protocol):
160160
)
161161
return None
162162

163-
return _dd_logs_exporter(OTLPLogExporter, protocol, "protobuf")
163+
return _dd_logs_exporter(OTLPLogExporter, protocol.split("/")[0], "protobuf")
164164

165165
except ImportError as e:
166166
log.warning(

0 commit comments

Comments
 (0)